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