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