public static final class Short2LongMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Short2LongArrayMap |
arrayMap()
Helper function to unify code
|
Short2LongArrayMap |
arrayMap(int size)
Helper function to unify code
|
Short2LongArrayMap |
arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
Helper function to unify code
|
Short2LongArrayMap |
arrayMap(short[] keys,
long[] values)
Helper function to unify code
|
Short2LongArrayMap |
arrayMap(java.lang.Short[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Short2LongArrayMap |
arrayMap(Short2LongMap map)
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map,
ShortComparator comp)
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap(short[] keys,
long[] values,
ShortComparator comp)
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap(java.lang.Short[] keys,
java.lang.Long[] values,
ShortComparator comp)
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap(Short2LongMap map,
ShortComparator comp)
Helper function to unify code
|
Short2LongAVLTreeMap |
avlTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(short[] keys,
long[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Short[] keys,
java.lang.Long[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(Short2LongMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongLinkedOpenCustomHashMap |
customLinkedMap(ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(short[] keys,
long[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(java.lang.Short[] keys,
java.lang.Long[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(Short2LongMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2LongOpenCustomHashMap |
customMap(ShortStrategy strategy)
Helper function to unify code
|
ImmutableShort2LongOpenHashMap |
immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
Helper function to unify code
|
ImmutableShort2LongOpenHashMap |
immutable(short[] keys,
long[] values)
Helper function to unify code
|
ImmutableShort2LongOpenHashMap |
immutable(java.lang.Short[] keys,
java.lang.Long[] values)
Helper function to unify code
|
ImmutableShort2LongOpenHashMap |
immutable(Short2LongMap map)
Helper function to unify code
|
Short2LongLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Short2LongLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableShort2LongOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
Helper function to unify code
|
Short2LongLinkedOpenHashMap |
linkedMap(short[] keys,
long[] values)
Helper function to unify code
|
Short2LongLinkedOpenHashMap |
linkedMap(java.lang.Short[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Short2LongLinkedOpenHashMap |
linkedMap(Short2LongMap map)
Helper function to unify code
|
Short2LongOpenHashMap |
map()
Helper function to unify code
|
Short2LongOpenHashMap |
map(int size)
Helper function to unify code
|
Short2LongOpenHashMap |
map(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
Helper function to unify code
|
Short2LongOpenHashMap |
map(short[] keys,
long[] values)
Helper function to unify code
|
Short2LongOpenHashMap |
map(java.lang.Short[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Short2LongOpenHashMap |
map(Short2LongMap map)
Helper function to unify code
|
Short2LongMap.BuilderCache |
put(short key,
long 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
|
Short2LongMap.BuilderCache |
put(java.lang.Short key,
java.lang.Long 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
|
Short2LongRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Short2LongRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map,
ShortComparator comp)
Helper function to unify code
|
Short2LongRBTreeMap |
rbTreeMap(short[] keys,
long[] values,
ShortComparator comp)
Helper function to unify code
|
Short2LongRBTreeMap |
rbTreeMap(java.lang.Short[] keys,
java.lang.Long[] values,
ShortComparator comp)
Helper function to unify code
|
Short2LongRBTreeMap |
rbTreeMap(Short2LongMap map,
ShortComparator comp)
Helper function to unify code
|
Short2LongRBTreeMap |
rbTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2LongMap.BuilderCache |
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
|
Short2LongMap.BuilderCache |
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 Short2LongMap.BuilderCache start()
public Short2LongMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Short2LongMap.BuilderCache put(short key, long value)
key - the key that should be addedvalue - the value that should be addedpublic Short2LongMap.BuilderCache put(java.lang.Short key, java.lang.Long value)
key - the key that should be addedvalue - the value that should be addedpublic Short2LongOpenHashMap map()
public Short2LongOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Short2LongOpenHashMap map(short[] keys, long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongOpenHashMap map(java.lang.Short[] keys, java.lang.Long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongOpenHashMap map(Short2LongMap map)
map - that should be clonedpublic Short2LongOpenHashMap map(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
map - that should be clonedpublic Short2LongLinkedOpenHashMap linkedMap()
public Short2LongLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Short2LongLinkedOpenHashMap linkedMap(short[] keys, long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongLinkedOpenHashMap linkedMap(java.lang.Short[] keys, java.lang.Long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongLinkedOpenHashMap linkedMap(Short2LongMap map)
map - that should be clonedpublic ImmutableShort2LongOpenHashMap linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
map - that should be clonedpublic ImmutableShort2LongOpenHashMap immutable(short[] keys, long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic ImmutableShort2LongOpenHashMap immutable(java.lang.Short[] keys, java.lang.Long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic ImmutableShort2LongOpenHashMap immutable(Short2LongMap map)
map - that should be clonedpublic ImmutableShort2LongOpenHashMap immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
map - that should be clonedpublic Short2LongOpenCustomHashMap customMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2LongOpenCustomHashMap customMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2LongOpenCustomHashMap customMap(short[] keys, long[] values, ShortStrategy strategy)
keys - 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 Short2LongOpenCustomHashMap customMap(java.lang.Short[] keys, java.lang.Long[] values, ShortStrategy strategy)
keys - 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 Short2LongOpenCustomHashMap customMap(Short2LongMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2LongOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2LongLinkedOpenCustomHashMap customLinkedMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2LongLinkedOpenCustomHashMap customLinkedMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2LongLinkedOpenCustomHashMap customLinkedMap(short[] keys, long[] values, ShortStrategy strategy)
keys - 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 Short2LongLinkedOpenCustomHashMap customLinkedMap(java.lang.Short[] keys, java.lang.Long[] values, ShortStrategy strategy)
keys - 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 Short2LongLinkedOpenCustomHashMap customLinkedMap(Short2LongMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2LongLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2LongArrayMap arrayMap()
public Short2LongArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Short2LongArrayMap arrayMap(short[] keys, long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongArrayMap arrayMap(java.lang.Short[] keys, java.lang.Long[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Short2LongArrayMap arrayMap(Short2LongMap map)
map - that should be clonedpublic Short2LongArrayMap arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map)
map - that should be clonedpublic Short2LongRBTreeMap rbTreeMap()
public Short2LongRBTreeMap rbTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2LongRBTreeMap rbTreeMap(short[] keys, long[] values, ShortComparator comp)
keys - 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 Short2LongRBTreeMap rbTreeMap(java.lang.Short[] keys, java.lang.Long[] values, ShortComparator comp)
keys - 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 Short2LongRBTreeMap rbTreeMap(Short2LongMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2LongRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2LongAVLTreeMap avlTreeMap()
public Short2LongAVLTreeMap avlTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2LongAVLTreeMap avlTreeMap(short[] keys, long[] values, ShortComparator comp)
keys - 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 Short2LongAVLTreeMap avlTreeMap(java.lang.Short[] keys, java.lang.Long[] values, ShortComparator comp)
keys - 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 Short2LongAVLTreeMap avlTreeMap(Short2LongMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2LongAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Long> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap