Serializable
, Comparable<ImmutableObjectIntMapFactoryImpl>
, ImmutableObjectIntMapFactory
public enum ImmutableObjectIntMapFactoryImpl extends Enum<ImmutableObjectIntMapFactoryImpl> implements ImmutableObjectIntMapFactory
ImmutableObjectIntMap
.
This file was automatically generated from template file immutableObjectPrimitiveMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<K> ImmutableObjectIntMap<K> |
empty() |
|
<T,K> ImmutableObjectIntMap<K> |
from(Iterable<T> iterable,
Function<? super T,? extends K> keyFunction,
IntFunction<? super T> valueFunction) |
Creates an
ImmutableObjectIntMap from an Iterable<T> by applying keyFunction and valueFunction . |
<K> ImmutableObjectIntMap<K> |
of() |
Same as
ImmutableObjectIntMapFactory.empty() . |
<K> ImmutableObjectIntMap<K> |
of(K key,
int value) |
|
<K> ImmutableObjectIntMap<K> |
ofAll(ObjectIntMap<? extends K> map) |
|
static ImmutableObjectIntMapFactoryImpl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableObjectIntMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<K> ImmutableObjectIntMap<K> |
with() |
Same as
ImmutableObjectIntMapFactory.empty() . |
<K> ImmutableObjectIntMap<K> |
with(K key,
int value) |
|
<K> ImmutableObjectIntMap<K> |
withAll(ObjectIntMap<? extends K> map) |
public static final ImmutableObjectIntMapFactoryImpl INSTANCE
public static ImmutableObjectIntMapFactoryImpl[] values()
for (ImmutableObjectIntMapFactoryImpl c : ImmutableObjectIntMapFactoryImpl.values()) System.out.println(c);
public static ImmutableObjectIntMapFactoryImpl valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <K> ImmutableObjectIntMap<K> empty()
empty
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> of()
ImmutableObjectIntMapFactory
ImmutableObjectIntMapFactory.empty()
.of
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> with()
ImmutableObjectIntMapFactory
ImmutableObjectIntMapFactory.empty()
.with
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> of(K key, int value)
ImmutableObjectIntMapFactory
of
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> with(K key, int value)
with
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> ofAll(ObjectIntMap<? extends K> map)
ImmutableObjectIntMapFactory
ofAll
in interface ImmutableObjectIntMapFactory
public <K> ImmutableObjectIntMap<K> withAll(ObjectIntMap<? extends K> map)
withAll
in interface ImmutableObjectIntMapFactory
public <T,K> ImmutableObjectIntMap<K> from(Iterable<T> iterable, Function<? super T,? extends K> keyFunction, IntFunction<? super T> valueFunction)
ImmutableObjectIntMapFactory
ImmutableObjectIntMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface ImmutableObjectIntMapFactory
Copyright © 2004–2019. All rights reserved.