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