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