Class ImmutableIntIntMapFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.map.immutable.primitive.ImmutableIntIntMapFactoryImpl
-
- All Implemented Interfaces:
ImmutableIntIntMapFactory
public class ImmutableIntIntMapFactoryImpl extends java.lang.Object implements ImmutableIntIntMapFactory
ImmutableIntIntMapFactoryImpl is a factory implementation which creates instances of typeImmutableIntIntMap
. This file was automatically generated from template file immutablePrimitivePrimitiveMapFactoryImpl.stg.- Since:
- 4.0.
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableIntIntMapFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableIntIntMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableIntIntMap
empty()
<T> ImmutableIntIntMap
from(java.lang.Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)
Creates anImmutableIntIntMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.ImmutableIntIntMap
of()
Same asImmutableIntIntMapFactory.empty()
.ImmutableIntIntMap
of(int key, int value)
ImmutableIntIntMap
ofAll(IntIntMap map)
ImmutableIntIntMap
with()
Same asImmutableIntIntMapFactory.empty()
.ImmutableIntIntMap
with(int key, int value)
ImmutableIntIntMap
withAll(IntIntMap map)
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableIntIntMapFactory INSTANCE
-
-
Method Detail
-
empty
public ImmutableIntIntMap empty()
- Specified by:
empty
in interfaceImmutableIntIntMapFactory
-
of
public ImmutableIntIntMap of()
Description copied from interface:ImmutableIntIntMapFactory
Same asImmutableIntIntMapFactory.empty()
.- Specified by:
of
in interfaceImmutableIntIntMapFactory
-
with
public ImmutableIntIntMap with()
Description copied from interface:ImmutableIntIntMapFactory
Same asImmutableIntIntMapFactory.empty()
.- Specified by:
with
in interfaceImmutableIntIntMapFactory
-
of
public ImmutableIntIntMap of(int key, int value)
Description copied from interface:ImmutableIntIntMapFactory
- Specified by:
of
in interfaceImmutableIntIntMapFactory
-
with
public ImmutableIntIntMap with(int key, int value)
- Specified by:
with
in interfaceImmutableIntIntMapFactory
-
ofAll
public ImmutableIntIntMap ofAll(IntIntMap map)
Description copied from interface:ImmutableIntIntMapFactory
- Specified by:
ofAll
in interfaceImmutableIntIntMapFactory
-
withAll
public ImmutableIntIntMap withAll(IntIntMap map)
- Specified by:
withAll
in interfaceImmutableIntIntMapFactory
-
from
public <T> ImmutableIntIntMap from(java.lang.Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)
Description copied from interface:ImmutableIntIntMapFactory
Creates anImmutableIntIntMap
from anIterable<T>
by applyingkeyFunction
andvalueFunction
.- Specified by:
from
in interfaceImmutableIntIntMapFactory
-
-