Serializable
, Comparable<ImmutableIntObjectMapFactoryImpl>
, ImmutableIntObjectMapFactory
public enum ImmutableIntObjectMapFactoryImpl extends Enum<ImmutableIntObjectMapFactoryImpl> implements ImmutableIntObjectMapFactory
ImmutableIntObjectMap
.
This file was automatically generated from template file immutablePrimitiveObjectMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableIntObjectMap<V> |
empty() |
|
<T,V> ImmutableIntObjectMap<V> |
from(Iterable<T> iterable,
IntFunction<? super T> keyFunction,
Function<? super T,? extends V> valueFunction) |
Creates an
ImmutableIntObjectMap from an Iterable<T> by applying keyFunction and valueFunction . |
<V> ImmutableIntObjectMap<V> |
of() |
Same as
ImmutableIntObjectMapFactory.empty() . |
<V> ImmutableIntObjectMap<V> |
of(int key,
V value) |
|
<V> ImmutableIntObjectMap<V> |
ofAll(IntObjectMap<? extends V> map) |
|
static ImmutableIntObjectMapFactoryImpl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableIntObjectMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<V> ImmutableIntObjectMap<V> |
with() |
Same as
ImmutableIntObjectMapFactory.empty() . |
<V> ImmutableIntObjectMap<V> |
with(int key,
V value) |
|
<V> ImmutableIntObjectMap<V> |
withAll(IntObjectMap<? extends V> map) |
public static final ImmutableIntObjectMapFactoryImpl INSTANCE
public static ImmutableIntObjectMapFactoryImpl[] values()
for (ImmutableIntObjectMapFactoryImpl c : ImmutableIntObjectMapFactoryImpl.values()) System.out.println(c);
public static ImmutableIntObjectMapFactoryImpl 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 <V> ImmutableIntObjectMap<V> empty()
empty
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> of()
ImmutableIntObjectMapFactory
ImmutableIntObjectMapFactory.empty()
.of
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> with()
ImmutableIntObjectMapFactory
ImmutableIntObjectMapFactory.empty()
.with
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> of(int key, V value)
ImmutableIntObjectMapFactory
of
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> with(int key, V value)
with
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> ofAll(IntObjectMap<? extends V> map)
ImmutableIntObjectMapFactory
ofAll
in interface ImmutableIntObjectMapFactory
public <V> ImmutableIntObjectMap<V> withAll(IntObjectMap<? extends V> map)
withAll
in interface ImmutableIntObjectMapFactory
public <T,V> ImmutableIntObjectMap<V> from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
ImmutableIntObjectMapFactory
ImmutableIntObjectMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface ImmutableIntObjectMapFactory
Copyright © 2004–2019. All rights reserved.