Top Description Methods
org.eclipse.collections.api.factory.map.primitive

public Interface ImmutableObjectShortMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.ShortFunction, org.eclipse.collections.api.map.primitive.ImmutableObjectShortMap, .ObjectShortMap

A factory which creates instances of type ImmutableObjectShortMap. This file was automatically generated from template file immutableObjectPrimitiveMapFactory.stg.
Since
4.0.

Method Summary

Modifier and TypeMethod and Description
public <K> ImmutableObjectShortMap<K>
public <T, K> ImmutableObjectShortMap<K>
from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction)

Creates an ImmutableObjectShortMap from an Iterable<T> by applying keyFunction and valueFunction.

public <K> ImmutableObjectShortMap<K>
of()

Same as empty().

public <K> ImmutableObjectShortMap<K>
of(K key, short value)

Same as with(Object, short).

public <K> ImmutableObjectShortMap<K>
ofAll(ObjectShortMap<? extends K> map)

Same as withAll(ObjectShortMap).

public <K> ImmutableObjectShortMap<K>
with()

Same as empty().

public <K> ImmutableObjectShortMap<K>
with(K key, short value)

public <K> ImmutableObjectShortMap<K>
withAll(ObjectShortMap<? extends K> map)

Method Detail

emptyback to summary
public <K> ImmutableObjectShortMap<K> empty()
Since
6.0
fromback to summary
public <T, K> ImmutableObjectShortMap<K> from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction)

Creates an ImmutableObjectShortMap from an Iterable<T> by applying keyFunction and valueFunction.

Since
10.0
ofback to summary
public <K> ImmutableObjectShortMap<K> of()

Same as empty().

ofback to summary
public <K> ImmutableObjectShortMap<K> of(K key, short value)

Same as with(Object, short).

ofAllback to summary
public <K> ImmutableObjectShortMap<K> ofAll(ObjectShortMap<? extends K> map)

Same as withAll(ObjectShortMap).

withback to summary
public <K> ImmutableObjectShortMap<K> with()

Same as empty().

withback to summary
public <K> ImmutableObjectShortMap<K> with(K key, short value)
withAllback to summary
public <K> ImmutableObjectShortMap<K> withAll(ObjectShortMap<? extends K> map)