public static final class Short2IntMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Short2IntArrayMap |
arrayMap()
Helper function to unify code
|
Short2IntArrayMap |
arrayMap(int size)
Helper function to unify code
|
Short2IntArrayMap |
arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
Helper function to unify code
|
Short2IntArrayMap |
arrayMap(short[] keys,
int[] values)
Helper function to unify code
|
Short2IntArrayMap |
arrayMap(java.lang.Short[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Short2IntArrayMap |
arrayMap(Short2IntMap map)
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map,
ShortComparator comp)
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap(short[] keys,
int[] values,
ShortComparator comp)
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap(java.lang.Short[] keys,
java.lang.Integer[] values,
ShortComparator comp)
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap(Short2IntMap map,
ShortComparator comp)
Helper function to unify code
|
Short2IntAVLTreeMap |
avlTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(short[] keys,
int[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Short[] keys,
java.lang.Integer[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(Short2IntMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(short[] keys,
int[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(java.lang.Short[] keys,
java.lang.Integer[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(Short2IntMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2IntOpenCustomHashMap |
customMap(ShortStrategy strategy)
Helper function to unify code
|
ImmutableShort2IntOpenHashMap |
immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
Helper function to unify code
|
ImmutableShort2IntOpenHashMap |
immutable(short[] keys,
int[] values)
Helper function to unify code
|
ImmutableShort2IntOpenHashMap |
immutable(java.lang.Short[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
ImmutableShort2IntOpenHashMap |
immutable(Short2IntMap map)
Helper function to unify code
|
Short2IntLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Short2IntLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableShort2IntOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
Helper function to unify code
|
Short2IntLinkedOpenHashMap |
linkedMap(short[] keys,
int[] values)
Helper function to unify code
|
Short2IntLinkedOpenHashMap |
linkedMap(java.lang.Short[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Short2IntLinkedOpenHashMap |
linkedMap(Short2IntMap map)
Helper function to unify code
|
Short2IntOpenHashMap |
map()
Helper function to unify code
|
Short2IntOpenHashMap |
map(int size)
Helper function to unify code
|
Short2IntOpenHashMap |
map(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
Helper function to unify code
|
Short2IntOpenHashMap |
map(short[] keys,
int[] values)
Helper function to unify code
|
Short2IntOpenHashMap |
map(java.lang.Short[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Short2IntOpenHashMap |
map(Short2IntMap map)
Helper function to unify code
|
Short2IntMap.BuilderCache |
put(short key,
int 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
|
Short2IntMap.BuilderCache |
put(java.lang.Short key,
java.lang.Integer 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
|
Short2IntRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Short2IntRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map,
ShortComparator comp)
Helper function to unify code
|
Short2IntRBTreeMap |
rbTreeMap(short[] keys,
int[] values,
ShortComparator comp)
Helper function to unify code
|
Short2IntRBTreeMap |
rbTreeMap(java.lang.Short[] keys,
java.lang.Integer[] values,
ShortComparator comp)
Helper function to unify code
|
Short2IntRBTreeMap |
rbTreeMap(Short2IntMap map,
ShortComparator comp)
Helper function to unify code
|
Short2IntRBTreeMap |
rbTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2IntMap.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
|
Short2IntMap.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 Short2IntMap.BuilderCache start()
public Short2IntMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Short2IntMap.BuilderCache put(short key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Short2IntMap.BuilderCache put(java.lang.Short key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Short2IntOpenHashMap map()
public Short2IntOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Short2IntOpenHashMap map(short[] keys, int[] 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 Short2IntOpenHashMap map(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntOpenHashMap map(Short2IntMap map)
map - that should be clonedpublic Short2IntOpenHashMap map(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
map - that should be clonedpublic Short2IntLinkedOpenHashMap linkedMap()
public Short2IntLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Short2IntLinkedOpenHashMap linkedMap(short[] keys, int[] 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 Short2IntLinkedOpenHashMap linkedMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntLinkedOpenHashMap linkedMap(Short2IntMap map)
map - that should be clonedpublic ImmutableShort2IntOpenHashMap linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
map - that should be clonedpublic ImmutableShort2IntOpenHashMap immutable(short[] keys, int[] 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 ImmutableShort2IntOpenHashMap immutable(java.lang.Short[] keys, java.lang.Integer[] 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 ImmutableShort2IntOpenHashMap immutable(Short2IntMap map)
map - that should be clonedpublic ImmutableShort2IntOpenHashMap immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
map - that should be clonedpublic Short2IntOpenCustomHashMap customMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2IntOpenCustomHashMap customMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2IntOpenCustomHashMap customMap(short[] keys, int[] 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 Short2IntOpenCustomHashMap customMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntOpenCustomHashMap customMap(Short2IntMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2IntOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2IntLinkedOpenCustomHashMap customLinkedMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2IntLinkedOpenCustomHashMap customLinkedMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2IntLinkedOpenCustomHashMap customLinkedMap(short[] keys, int[] 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 Short2IntLinkedOpenCustomHashMap customLinkedMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntLinkedOpenCustomHashMap customLinkedMap(Short2IntMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2IntLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2IntArrayMap arrayMap()
public Short2IntArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Short2IntArrayMap arrayMap(short[] keys, int[] 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 Short2IntArrayMap arrayMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntArrayMap arrayMap(Short2IntMap map)
map - that should be clonedpublic Short2IntArrayMap arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
map - that should be clonedpublic Short2IntRBTreeMap rbTreeMap()
public Short2IntRBTreeMap rbTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2IntRBTreeMap rbTreeMap(short[] keys, int[] 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 Short2IntRBTreeMap rbTreeMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntRBTreeMap rbTreeMap(Short2IntMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2IntRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2IntAVLTreeMap avlTreeMap()
public Short2IntAVLTreeMap avlTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2IntAVLTreeMap avlTreeMap(short[] keys, int[] 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 Short2IntAVLTreeMap avlTreeMap(java.lang.Short[] keys, java.lang.Integer[] 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 Short2IntAVLTreeMap avlTreeMap(Short2IntMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2IntAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap