public static final class Long2ShortMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Long2ShortArrayMap |
arrayMap()
Helper function to unify code
|
Long2ShortArrayMap |
arrayMap(int size)
Helper function to unify code
|
Long2ShortArrayMap |
arrayMap(long[] keys,
short[] values)
Helper function to unify code
|
Long2ShortArrayMap |
arrayMap(java.lang.Long[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Long2ShortArrayMap |
arrayMap(Long2ShortMap map)
Helper function to unify code
|
Long2ShortArrayMap |
arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap(long[] keys,
short[] values,
LongComparator comp)
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap(java.lang.Long[] keys,
java.lang.Short[] values,
LongComparator comp)
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap(Long2ShortMap map,
LongComparator comp)
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap(LongComparator comp)
Helper function to unify code
|
Long2ShortAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map,
LongComparator comp)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(long[] keys,
short[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Long[] keys,
java.lang.Short[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(Long2ShortMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(LongStrategy strategy)
Helper function to unify code
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(long[] keys,
short[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(java.lang.Long[] keys,
java.lang.Short[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(Long2ShortMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(LongStrategy strategy)
Helper function to unify code
|
Long2ShortOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map,
LongStrategy strategy)
Helper function to unify code
|
ImmutableLong2ShortOpenHashMap |
immutable(long[] keys,
short[] values)
Helper function to unify code
|
ImmutableLong2ShortOpenHashMap |
immutable(java.lang.Long[] keys,
java.lang.Short[] values)
Helper function to unify code
|
ImmutableLong2ShortOpenHashMap |
immutable(Long2ShortMap map)
Helper function to unify code
|
ImmutableLong2ShortOpenHashMap |
immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
Helper function to unify code
|
Long2ShortLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Long2ShortLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Long2ShortLinkedOpenHashMap |
linkedMap(long[] keys,
short[] values)
Helper function to unify code
|
Long2ShortLinkedOpenHashMap |
linkedMap(java.lang.Long[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Long2ShortLinkedOpenHashMap |
linkedMap(Long2ShortMap map)
Helper function to unify code
|
ImmutableLong2ShortOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
Helper function to unify code
|
Long2ShortOpenHashMap |
map()
Helper function to unify code
|
Long2ShortOpenHashMap |
map(int size)
Helper function to unify code
|
Long2ShortOpenHashMap |
map(long[] keys,
short[] values)
Helper function to unify code
|
Long2ShortOpenHashMap |
map(java.lang.Long[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Long2ShortOpenHashMap |
map(Long2ShortMap map)
Helper function to unify code
|
Long2ShortOpenHashMap |
map(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
Helper function to unify code
|
Long2ShortMap.BuilderCache |
put(long key,
short 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
|
Long2ShortMap.BuilderCache |
put(java.lang.Long key,
java.lang.Short 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
|
Long2ShortRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Long2ShortRBTreeMap |
rbTreeMap(long[] keys,
short[] values,
LongComparator comp)
Helper function to unify code
|
Long2ShortRBTreeMap |
rbTreeMap(java.lang.Long[] keys,
java.lang.Short[] values,
LongComparator comp)
Helper function to unify code
|
Long2ShortRBTreeMap |
rbTreeMap(Long2ShortMap map,
LongComparator comp)
Helper function to unify code
|
Long2ShortRBTreeMap |
rbTreeMap(LongComparator comp)
Helper function to unify code
|
Long2ShortRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map,
LongComparator comp)
Helper function to unify code
|
Long2ShortMap.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
|
Long2ShortMap.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 Long2ShortMap.BuilderCache start()
public Long2ShortMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Long2ShortMap.BuilderCache put(long key, short value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ShortMap.BuilderCache put(java.lang.Long key, java.lang.Short value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ShortOpenHashMap map()
public Long2ShortOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Long2ShortOpenHashMap map(long[] keys, short[] 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 Long2ShortOpenHashMap map(java.lang.Long[] keys, java.lang.Short[] 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 Long2ShortOpenHashMap map(Long2ShortMap map)
map - that should be clonedpublic Long2ShortOpenHashMap map(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
map - that should be clonedpublic Long2ShortLinkedOpenHashMap linkedMap()
public Long2ShortLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Long2ShortLinkedOpenHashMap linkedMap(long[] keys, short[] 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 Long2ShortLinkedOpenHashMap linkedMap(java.lang.Long[] keys, java.lang.Short[] 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 Long2ShortLinkedOpenHashMap linkedMap(Long2ShortMap map)
map - that should be clonedpublic ImmutableLong2ShortOpenHashMap linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
map - that should be clonedpublic ImmutableLong2ShortOpenHashMap immutable(long[] keys, short[] 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 ImmutableLong2ShortOpenHashMap immutable(java.lang.Long[] keys, java.lang.Short[] 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 ImmutableLong2ShortOpenHashMap immutable(Long2ShortMap map)
map - that should be clonedpublic ImmutableLong2ShortOpenHashMap immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
map - that should be clonedpublic Long2ShortOpenCustomHashMap customMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2ShortOpenCustomHashMap customMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2ShortOpenCustomHashMap customMap(long[] keys, short[] values, LongStrategy 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 Long2ShortOpenCustomHashMap customMap(java.lang.Long[] keys, java.lang.Short[] values, LongStrategy 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 Long2ShortOpenCustomHashMap customMap(Long2ShortMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2ShortOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2ShortLinkedOpenCustomHashMap customLinkedMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2ShortLinkedOpenCustomHashMap customLinkedMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2ShortLinkedOpenCustomHashMap customLinkedMap(long[] keys, short[] values, LongStrategy 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 Long2ShortLinkedOpenCustomHashMap customLinkedMap(java.lang.Long[] keys, java.lang.Short[] values, LongStrategy 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 Long2ShortLinkedOpenCustomHashMap customLinkedMap(Long2ShortMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2ShortLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2ShortArrayMap arrayMap()
public Long2ShortArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Long2ShortArrayMap arrayMap(long[] keys, short[] 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 Long2ShortArrayMap arrayMap(java.lang.Long[] keys, java.lang.Short[] 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 Long2ShortArrayMap arrayMap(Long2ShortMap map)
map - that should be clonedpublic Long2ShortArrayMap arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
map - that should be clonedpublic Long2ShortRBTreeMap rbTreeMap()
public Long2ShortRBTreeMap rbTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2ShortRBTreeMap rbTreeMap(long[] keys, short[] values, LongComparator 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 Long2ShortRBTreeMap rbTreeMap(java.lang.Long[] keys, java.lang.Short[] values, LongComparator 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 Long2ShortRBTreeMap rbTreeMap(Long2ShortMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2ShortRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2ShortAVLTreeMap avlTreeMap()
public Long2ShortAVLTreeMap avlTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2ShortAVLTreeMap avlTreeMap(long[] keys, short[] values, LongComparator 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 Long2ShortAVLTreeMap avlTreeMap(java.lang.Long[] keys, java.lang.Short[] values, LongComparator 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 Long2ShortAVLTreeMap avlTreeMap(Long2ShortMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2ShortAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap