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