public static final class Double2ShortMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Double2ShortArrayMap |
arrayMap()
Helper function to unify code
|
Double2ShortArrayMap |
arrayMap(double[] keys,
short[] values)
Helper function to unify code
|
Double2ShortArrayMap |
arrayMap(java.lang.Double[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Double2ShortArrayMap |
arrayMap(Double2ShortMap map)
Helper function to unify code
|
Double2ShortArrayMap |
arrayMap(int size)
Helper function to unify code
|
Double2ShortArrayMap |
arrayMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap(double[] keys,
short[] values,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap(java.lang.Double[] keys,
java.lang.Short[] values,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap(Double2ShortMap map,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap(DoubleComparator comp)
Helper function to unify code
|
Double2ShortAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(double[] keys,
short[] values,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Double[] keys,
java.lang.Short[] values,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(Double2ShortMap map,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(int size,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(double[] keys,
short[] values,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(java.lang.Double[] keys,
java.lang.Short[] values,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(Double2ShortMap map,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(int size,
DoubleStrategy strategy)
Helper function to unify code
|
Double2ShortOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map,
DoubleStrategy strategy)
Helper function to unify code
|
ImmutableDouble2ShortOpenHashMap |
immutable(double[] keys,
short[] values)
Helper function to unify code
|
ImmutableDouble2ShortOpenHashMap |
immutable(java.lang.Double[] keys,
java.lang.Short[] values)
Helper function to unify code
|
ImmutableDouble2ShortOpenHashMap |
immutable(Double2ShortMap map)
Helper function to unify code
|
ImmutableDouble2ShortOpenHashMap |
immutable(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
Helper function to unify code
|
Double2ShortLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Double2ShortLinkedOpenHashMap |
linkedMap(double[] keys,
short[] values)
Helper function to unify code
|
Double2ShortLinkedOpenHashMap |
linkedMap(java.lang.Double[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Double2ShortLinkedOpenHashMap |
linkedMap(Double2ShortMap map)
Helper function to unify code
|
Double2ShortLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableDouble2ShortOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
Helper function to unify code
|
Double2ShortOpenHashMap |
map()
Helper function to unify code
|
Double2ShortOpenHashMap |
map(double[] keys,
short[] values)
Helper function to unify code
|
Double2ShortOpenHashMap |
map(java.lang.Double[] keys,
java.lang.Short[] values)
Helper function to unify code
|
Double2ShortOpenHashMap |
map(Double2ShortMap map)
Helper function to unify code
|
Double2ShortOpenHashMap |
map(int size)
Helper function to unify code
|
Double2ShortOpenHashMap |
map(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
Helper function to unify code
|
Double2ShortMap.BuilderCache |
put(double 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
|
Double2ShortMap.BuilderCache |
put(java.lang.Double 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
|
Double2ShortRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Double2ShortRBTreeMap |
rbTreeMap(double[] keys,
short[] values,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortRBTreeMap |
rbTreeMap(java.lang.Double[] keys,
java.lang.Short[] values,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortRBTreeMap |
rbTreeMap(Double2ShortMap map,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortRBTreeMap |
rbTreeMap(DoubleComparator comp)
Helper function to unify code
|
Double2ShortRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map,
DoubleComparator comp)
Helper function to unify code
|
Double2ShortMap.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
|
Double2ShortMap.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 Double2ShortMap.BuilderCache start()
public Double2ShortMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Double2ShortMap.BuilderCache put(double key, short value)
key - the key that should be addedvalue - the value that should be addedpublic Double2ShortMap.BuilderCache put(java.lang.Double key, java.lang.Short value)
key - the key that should be addedvalue - the value that should be addedpublic Double2ShortOpenHashMap map()
public Double2ShortOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Double2ShortOpenHashMap map(double[] 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 Double2ShortOpenHashMap map(java.lang.Double[] 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 Double2ShortOpenHashMap map(Double2ShortMap map)
map - that should be clonedpublic Double2ShortOpenHashMap map(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
map - that should be clonedpublic Double2ShortLinkedOpenHashMap linkedMap()
public Double2ShortLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Double2ShortLinkedOpenHashMap linkedMap(double[] 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 Double2ShortLinkedOpenHashMap linkedMap(java.lang.Double[] 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 Double2ShortLinkedOpenHashMap linkedMap(Double2ShortMap map)
map - that should be clonedpublic ImmutableDouble2ShortOpenHashMap linkedMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
map - that should be clonedpublic ImmutableDouble2ShortOpenHashMap immutable(double[] 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 ImmutableDouble2ShortOpenHashMap immutable(java.lang.Double[] 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 ImmutableDouble2ShortOpenHashMap immutable(Double2ShortMap map)
map - that should be clonedpublic ImmutableDouble2ShortOpenHashMap immutable(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
map - that should be clonedpublic Double2ShortOpenCustomHashMap customMap(DoubleStrategy strategy)
strategy - the Hash Controllerpublic Double2ShortOpenCustomHashMap customMap(int size, DoubleStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Double2ShortOpenCustomHashMap customMap(double[] keys, short[] values, DoubleStrategy 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 Double2ShortOpenCustomHashMap customMap(java.lang.Double[] keys, java.lang.Short[] values, DoubleStrategy 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 Double2ShortOpenCustomHashMap customMap(Double2ShortMap map, DoubleStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Double2ShortOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map, DoubleStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Double2ShortLinkedOpenCustomHashMap customLinkedMap(DoubleStrategy strategy)
strategy - the Hash Controllerpublic Double2ShortLinkedOpenCustomHashMap customLinkedMap(int size, DoubleStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Double2ShortLinkedOpenCustomHashMap customLinkedMap(double[] keys, short[] values, DoubleStrategy 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 Double2ShortLinkedOpenCustomHashMap customLinkedMap(java.lang.Double[] keys, java.lang.Short[] values, DoubleStrategy 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 Double2ShortLinkedOpenCustomHashMap customLinkedMap(Double2ShortMap map, DoubleStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Double2ShortLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map, DoubleStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Double2ShortArrayMap arrayMap()
public Double2ShortArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Double2ShortArrayMap arrayMap(double[] 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 Double2ShortArrayMap arrayMap(java.lang.Double[] 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 Double2ShortArrayMap arrayMap(Double2ShortMap map)
map - that should be clonedpublic Double2ShortArrayMap arrayMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map)
map - that should be clonedpublic Double2ShortRBTreeMap rbTreeMap()
public Double2ShortRBTreeMap rbTreeMap(DoubleComparator comp)
comp - the Sorter of the TreeMappublic Double2ShortRBTreeMap rbTreeMap(double[] keys, short[] values, DoubleComparator 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 Double2ShortRBTreeMap rbTreeMap(java.lang.Double[] keys, java.lang.Short[] values, DoubleComparator 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 Double2ShortRBTreeMap rbTreeMap(Double2ShortMap map, DoubleComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Double2ShortRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map, DoubleComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Double2ShortAVLTreeMap avlTreeMap()
public Double2ShortAVLTreeMap avlTreeMap(DoubleComparator comp)
comp - the Sorter of the TreeMappublic Double2ShortAVLTreeMap avlTreeMap(double[] keys, short[] values, DoubleComparator 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 Double2ShortAVLTreeMap avlTreeMap(java.lang.Double[] keys, java.lang.Short[] values, DoubleComparator 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 Double2ShortAVLTreeMap avlTreeMap(Double2ShortMap map, DoubleComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Double2ShortAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> map, DoubleComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap