Enum MutableLongObjectMapFactoryImpl
java.lang.Object
java.lang.Enum<MutableLongObjectMapFactoryImpl>
org.eclipse.collections.impl.map.mutable.primitive.MutableLongObjectMapFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<MutableLongObjectMapFactoryImpl>
,java.lang.constant.Constable
,MutableLongObjectMapFactory
public enum MutableLongObjectMapFactoryImpl extends Enum<MutableLongObjectMapFactoryImpl> implements MutableLongObjectMapFactory
MutableLongObjectMapFactoryImpl is a factory implementation which creates instances of type
MutableLongObjectMap
.
This file was automatically generated from template file mutablePrimitiveObjectMapFactoryImpl.stg.- Since:
- 6.0.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description <V> MutableLongObjectMap<V>
empty()
<T, V> MutableLongObjectMap<V>
from(Iterable<T> iterable, LongFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
Creates anMutableLongObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.<V> MutableLongObjectMap<V>
of()
Same asMutableLongObjectMapFactory.empty()
.<V> MutableLongObjectMap<V>
ofAll(LongObjectMap<? extends V> map)
<V> MutableLongObjectMap<V>
ofInitialCapacity(int capacity)
Same asMutableLongObjectMapFactory.empty()
.static MutableLongObjectMapFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static MutableLongObjectMapFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<V> MutableLongObjectMap<V>
with()
Same asMutableLongObjectMapFactory.empty()
.<V> MutableLongObjectMap<V>
withAll(LongObjectMap<? extends V> map)
<V> MutableLongObjectMap<V>
withInitialCapacity(int capacity)
Same asMutableLongObjectMapFactory.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 interfaceMutableLongObjectMapFactory
-
of
Description copied from interface:MutableLongObjectMapFactory
Same asMutableLongObjectMapFactory.empty()
.- Specified by:
of
in interfaceMutableLongObjectMapFactory
-
with
Description copied from interface:MutableLongObjectMapFactory
Same asMutableLongObjectMapFactory.empty()
.- Specified by:
with
in interfaceMutableLongObjectMapFactory
-
ofInitialCapacity
Description copied from interface:MutableLongObjectMapFactory
Same asMutableLongObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
ofInitialCapacity
in interfaceMutableLongObjectMapFactory
-
withInitialCapacity
Description copied from interface:MutableLongObjectMapFactory
Same asMutableLongObjectMapFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableLongObjectMapFactory
-
ofAll
Description copied from interface:MutableLongObjectMapFactory
- Specified by:
ofAll
in interfaceMutableLongObjectMapFactory
-
withAll
- Specified by:
withAll
in interfaceMutableLongObjectMapFactory
-
from
public <T, V> MutableLongObjectMap<V> from(Iterable<T> iterable, LongFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)Description copied from interface:MutableLongObjectMapFactory
Creates anMutableLongObjectMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceMutableLongObjectMapFactory
-