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

public Interface MutableCharObjectMapFactory

Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.CharFunction, org.eclipse.collections.api.map.primitive.MutableCharObjectMap, .CharObjectMap

A factory which creates instances of type MutableCharObjectMap. This file was automatically generated from template file mutablePrimitiveObjectMapFactory.stg.
Since
6.0.

Method Summary

Modifier and TypeMethod and Description
public <V> MutableCharObjectMap<V>
public <T, V> MutableCharObjectMap<V>
from(Iterable<T> iterable, CharFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction)

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

public <V> MutableCharObjectMap<V>
of()

Same as empty().

public default <V> MutableCharObjectMap<V>
of(char key, V value)

public default <V> MutableCharObjectMap<V>
of(char key1, V value1, char key2, V value2)

public default <V> MutableCharObjectMap<V>
of(char key1, V value1, char key2, V value2, char key3, V value3)

public default <V> MutableCharObjectMap<V>
of(char key1, V value1, char key2, V value2, char key3, V value3, char key4, V value4)

public <V> MutableCharObjectMap<V>
ofAll(CharObjectMap<? extends V> map)

Same as withAll(CharObjectMap).

public <V> MutableCharObjectMap<V>
ofInitialCapacity(int capacity)

Same as empty().

public <V> MutableCharObjectMap<V>
with()

Same as empty().

public default <V> MutableCharObjectMap<V>
with(char key, V value)

public default <V> MutableCharObjectMap<V>
with(char key1, V value1, char key2, V value2)

public default <V> MutableCharObjectMap<V>
with(char key1, V value1, char key2, V value2, char key3, V value3)

public default <V> MutableCharObjectMap<V>
with(char key1, V value1, char key2, V value2, char key3, V value3, char key4, V value4)

public <V> MutableCharObjectMap<V>
withAll(CharObjectMap<? extends V> map)

public <V> MutableCharObjectMap<V>
withInitialCapacity(int capacity)

Same as empty().

Method Detail

emptyback to summary
public <V> MutableCharObjectMap<V> empty()
fromback to summary
public <T, V> MutableCharObjectMap<V> from(Iterable<T> iterable, CharFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction)

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

Since
10.0
ofback to summary
public <V> MutableCharObjectMap<V> of()

Same as empty().

ofback to summary
public default <V> MutableCharObjectMap<V> of(char key, V value)
Since
11.1.
ofback to summary
public default <V> MutableCharObjectMap<V> of(char key1, V value1, char key2, V value2)
Since
11.1.
ofback to summary
public default <V> MutableCharObjectMap<V> of(char key1, V value1, char key2, V value2, char key3, V value3)
Since
11.1.
ofback to summary
public default <V> MutableCharObjectMap<V> of(char key1, V value1, char key2, V value2, char key3, V value3, char key4, V value4)
Since
11.1.
ofAllback to summary
public <V> MutableCharObjectMap<V> ofAll(CharObjectMap<? extends V> map)

Same as withAll(CharObjectMap).

ofInitialCapacityback to summary
public <V> MutableCharObjectMap<V> ofInitialCapacity(int capacity)

Same as empty(). but takes in an initial capacity

withback to summary
public <V> MutableCharObjectMap<V> with()

Same as empty().

withback to summary
public default <V> MutableCharObjectMap<V> with(char key, V value)
Since
11.1.
withback to summary
public default <V> MutableCharObjectMap<V> with(char key1, V value1, char key2, V value2)
Since
11.1.
withback to summary
public default <V> MutableCharObjectMap<V> with(char key1, V value1, char key2, V value2, char key3, V value3)
Since
11.1.
withback to summary
public default <V> MutableCharObjectMap<V> with(char key1, V value1, char key2, V value2, char key3, V value3, char key4, V value4)
Since
11.1.
withAllback to summary
public <V> MutableCharObjectMap<V> withAll(CharObjectMap<? extends V> map)
withInitialCapacityback to summary
public <V> MutableCharObjectMap<V> withInitialCapacity(int capacity)

Same as empty(). but takes in an initial capacity