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