Enum MutableIntIntMapFactoryImpl
java.lang.Object
java.lang.Enum<MutableIntIntMapFactoryImpl>
org.eclipse.collections.impl.map.mutable.primitive.MutableIntIntMapFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<MutableIntIntMapFactoryImpl>
,java.lang.constant.Constable
,MutableIntIntMapFactory
public enum MutableIntIntMapFactoryImpl extends Enum<MutableIntIntMapFactoryImpl> implements MutableIntIntMapFactory
MutableIntIntMapFactoryImpl is a factory implementation which creates instances of type
MutableIntIntMap
.
This file was automatically generated from template file mutablePrimitivePrimitiveMapFactoryImpl.stg.- Since:
- 6.0.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description MutableIntIntMap
empty()
<T> MutableIntIntMap
from(Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)
Creates anMutableIntIntMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.MutableIntIntMap
of()
Same asMutableIntIntMapFactory.empty()
.MutableIntIntMap
ofAll(IntIntMap map)
MutableIntIntMap
ofInitialCapacity(int capacity)
Same asMutableIntIntMapFactory.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 asMutableIntIntMapFactory.empty()
.MutableIntIntMap
withAll(IntIntMap map)
MutableIntIntMap
withInitialCapacity(int capacity)
Same asMutableIntIntMapFactory.empty()
.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
empty
- Specified by:
empty
in interfaceMutableIntIntMapFactory
-
of
Description copied from interface:MutableIntIntMapFactory
Same asMutableIntIntMapFactory.empty()
.- Specified by:
of
in interfaceMutableIntIntMapFactory
-
with
Description copied from interface:MutableIntIntMapFactory
Same asMutableIntIntMapFactory.empty()
.- Specified by:
with
in interfaceMutableIntIntMapFactory
-
ofInitialCapacity
Description copied from interface:MutableIntIntMapFactory
Same asMutableIntIntMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableIntIntMapFactory
-
withInitialCapacity
Description copied from interface:MutableIntIntMapFactory
Same asMutableIntIntMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableIntIntMapFactory
-
ofAll
Description copied from interface:MutableIntIntMapFactory
- Specified by:
ofAll
in interfaceMutableIntIntMapFactory
-
withAll
- Specified by:
withAll
in interfaceMutableIntIntMapFactory
-
from
public <T> MutableIntIntMap from(Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)Description copied from interface:MutableIntIntMapFactory
Creates anMutableIntIntMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceMutableIntIntMapFactory
-