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