public static final class Short2ObjectMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<V> Short2ObjectArrayMap<V> |
arrayMap()
Helper function to unify code
|
<V> Short2ObjectArrayMap<V> |
arrayMap(int size)
Helper function to unify code
|
<V> Short2ObjectArrayMap<V> |
arrayMap(java.util.Map<? extends java.lang.Short,? extends V> map)
Helper function to unify code
|
<V> Short2ObjectArrayMap<V> |
arrayMap(short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectArrayMap<V> |
arrayMap(java.lang.Short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectArrayMap<V> |
arrayMap(Short2ObjectMap<V> map)
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap()
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap(java.util.Map<? extends java.lang.Short,? extends V> map,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap(short[] keys,
V[] values,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap(java.lang.Short[] keys,
V[] values,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap(Short2ObjectMap<V> map,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectAVLTreeMap<V> |
avlTreeMap(ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.util.Map<? extends java.lang.Short,? extends V> map,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(short[] keys,
V[] values,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.lang.Short[] keys,
V[] values,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(Short2ObjectMap<V> map,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(java.util.Map<? extends java.lang.Short,? extends V> map,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(short[] keys,
V[] values,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(java.lang.Short[] keys,
V[] values,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(Short2ObjectMap<V> map,
ShortStrategy strategy)
Helper function to unify code
|
<V> Short2ObjectOpenCustomHashMap<V> |
customMap(ShortStrategy strategy)
Helper function to unify code
|
<V> ImmutableShort2ObjectOpenHashMap<V> |
immutable(java.util.Map<? extends java.lang.Short,? extends V> map)
Helper function to unify code
|
<V> ImmutableShort2ObjectOpenHashMap<V> |
immutable(short[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableShort2ObjectOpenHashMap<V> |
immutable(java.lang.Short[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableShort2ObjectOpenHashMap<V> |
immutable(Short2ObjectMap<V> map)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenHashMap<V> |
linkedMap()
Helper function to unify code
|
<V> Short2ObjectLinkedOpenHashMap<V> |
linkedMap(int size)
Helper function to unify code
|
<V> ImmutableShort2ObjectOpenHashMap<V> |
linkedMap(java.util.Map<? extends java.lang.Short,? extends V> map)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenHashMap<V> |
linkedMap(short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenHashMap<V> |
linkedMap(java.lang.Short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectLinkedOpenHashMap<V> |
linkedMap(Short2ObjectMap<V> map)
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map()
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map(int size)
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map(java.util.Map<? extends java.lang.Short,? extends V> map)
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map(short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map(java.lang.Short[] keys,
V[] values)
Helper function to unify code
|
<V> Short2ObjectOpenHashMap<V> |
map(Short2ObjectMap<V> map)
Helper function to unify code
|
<V> Short2ObjectMap.BuilderCache<V> |
put(short key,
V value)
Starts a Map builder and puts in the Key and Value into it
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Short2ObjectMap.BuilderCache<V> |
put(java.lang.Short key,
V value)
Starts a Map builder and puts in the Key and Value into it
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap()
Helper function to unify code
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap(java.util.Map<? extends java.lang.Short,? extends V> map,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap(short[] keys,
V[] values,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap(java.lang.Short[] keys,
V[] values,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap(Short2ObjectMap<V> map,
ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectRBTreeMap<V> |
rbTreeMap(ShortComparator comp)
Helper function to unify code
|
<V> Short2ObjectMap.BuilderCache<V> |
start()
Starts a Map Builder that allows you to create maps as Constants a lot easier
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Short2ObjectMap.BuilderCache<V> |
start(int size)
Starts a Map Builder that allows you to create maps as Constants a lot easier
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
public <V> Short2ObjectMap.BuilderCache<V> start()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectMap.BuilderCache<V> start(int size)
V - the keyType of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <V> Short2ObjectMap.BuilderCache<V> put(short key, V value)
V - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Short2ObjectMap.BuilderCache<V> put(java.lang.Short key, V value)
V - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Short2ObjectOpenHashMap<V> map()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectOpenHashMap<V> map(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Short2ObjectOpenHashMap<V> map(short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectOpenHashMap<V> map(java.lang.Short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectOpenHashMap<V> map(Short2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Short2ObjectOpenHashMap<V> map(java.util.Map<? extends java.lang.Short,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Short2ObjectLinkedOpenHashMap<V> linkedMap()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectLinkedOpenHashMap<V> linkedMap(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Short2ObjectLinkedOpenHashMap<V> linkedMap(short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectLinkedOpenHashMap<V> linkedMap(java.lang.Short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectLinkedOpenHashMap<V> linkedMap(Short2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableShort2ObjectOpenHashMap<V> linkedMap(java.util.Map<? extends java.lang.Short,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableShort2ObjectOpenHashMap<V> immutable(short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> ImmutableShort2ObjectOpenHashMap<V> immutable(java.lang.Short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> ImmutableShort2ObjectOpenHashMap<V> immutable(Short2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableShort2ObjectOpenHashMap<V> immutable(java.util.Map<? extends java.lang.Short,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(int size, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(short[] keys, V[] values, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(java.lang.Short[] keys, V[] values, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(Short2ObjectMap<V> map, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Short2ObjectOpenCustomHashMap<V> customMap(java.util.Map<? extends java.lang.Short,? extends V> map, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(int size, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(short[] keys, V[] values, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.lang.Short[] keys, V[] values, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Short2ObjectMap<V> map, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Short2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.util.Map<? extends java.lang.Short,? extends V> map, ShortStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Short2ObjectArrayMap<V> arrayMap()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectArrayMap<V> arrayMap(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Short2ObjectArrayMap<V> arrayMap(short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectArrayMap<V> arrayMap(java.lang.Short[] keys, V[] values)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectArrayMap<V> arrayMap(Short2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Short2ObjectArrayMap<V> arrayMap(java.util.Map<? extends java.lang.Short,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Short2ObjectRBTreeMap<V> rbTreeMap()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectRBTreeMap<V> rbTreeMap(ShortComparator comp)
V - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Short2ObjectRBTreeMap<V> rbTreeMap(short[] keys, V[] values, ShortComparator comp)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectRBTreeMap<V> rbTreeMap(java.lang.Short[] keys, V[] values, ShortComparator comp)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectRBTreeMap<V> rbTreeMap(Short2ObjectMap<V> map, ShortComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Short2ObjectRBTreeMap<V> rbTreeMap(java.util.Map<? extends java.lang.Short,? extends V> map, ShortComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap()
V - the keyType of elements maintained by this Collectionpublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap(ShortComparator comp)
V - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap(short[] keys, V[] values, ShortComparator comp)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap(java.lang.Short[] keys, V[] values, ShortComparator comp)
V - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap(Short2ObjectMap<V> map, ShortComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Short2ObjectAVLTreeMap<V> avlTreeMap(java.util.Map<? extends java.lang.Short,? extends V> map, ShortComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap