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 ImmutableIntIntMapFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableIntIntMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableIntIntMapempty()<T> ImmutableIntIntMapfrom(java.lang.Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)Creates anImmutableIntIntMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.ImmutableIntIntMapof()Same asImmutableIntIntMapFactory.empty().ImmutableIntIntMapof(int key, int value)ImmutableIntIntMapofAll(IntIntMap map)ImmutableIntIntMapwith()Same asImmutableIntIntMapFactory.empty().ImmutableIntIntMapwith(int key, int value)ImmutableIntIntMapwithAll(IntIntMap map)
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableIntIntMapFactory INSTANCE
-
-
Method Detail
-
empty
public ImmutableIntIntMap empty()
- Specified by:
emptyin interfaceImmutableIntIntMapFactory
-
of
public ImmutableIntIntMap of()
Description copied from interface:ImmutableIntIntMapFactorySame asImmutableIntIntMapFactory.empty().- Specified by:
ofin interfaceImmutableIntIntMapFactory
-
with
public ImmutableIntIntMap with()
Description copied from interface:ImmutableIntIntMapFactorySame asImmutableIntIntMapFactory.empty().- Specified by:
within interfaceImmutableIntIntMapFactory
-
of
public ImmutableIntIntMap of(int key, int value)
Description copied from interface:ImmutableIntIntMapFactory- Specified by:
ofin interfaceImmutableIntIntMapFactory
-
with
public ImmutableIntIntMap with(int key, int value)
- Specified by:
within interfaceImmutableIntIntMapFactory
-
ofAll
public ImmutableIntIntMap ofAll(IntIntMap map)
Description copied from interface:ImmutableIntIntMapFactory- Specified by:
ofAllin interfaceImmutableIntIntMapFactory
-
withAll
public ImmutableIntIntMap withAll(IntIntMap map)
- Specified by:
withAllin interfaceImmutableIntIntMapFactory
-
from
public <T> ImmutableIntIntMap from(java.lang.Iterable<T> iterable, IntFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)
Description copied from interface:ImmutableIntIntMapFactoryCreates anImmutableIntIntMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.- Specified by:
fromin interfaceImmutableIntIntMapFactory
-
-