public static final class Int2DoubleMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Int2DoubleArrayMap |
arrayMap()
Helper function to unify code
|
Int2DoubleArrayMap |
arrayMap(int size)
Helper function to unify code
|
Int2DoubleArrayMap |
arrayMap(int[] keys,
double[] values)
Helper function to unify code
|
Int2DoubleArrayMap |
arrayMap(Int2DoubleMap map)
Helper function to unify code
|
Int2DoubleArrayMap |
arrayMap(java.lang.Integer[] keys,
java.lang.Double[] values)
Helper function to unify code
|
Int2DoubleArrayMap |
arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap(int[] keys,
double[] values,
IntComparator comp)
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap(Int2DoubleMap map,
IntComparator comp)
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap(IntComparator comp)
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap(java.lang.Integer[] keys,
java.lang.Double[] values,
IntComparator comp)
Helper function to unify code
|
Int2DoubleAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map,
IntComparator comp)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(int[] keys,
double[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(Int2DoubleMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Integer[] keys,
java.lang.Double[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(IntStrategy strategy)
Helper function to unify code
|
Int2DoubleLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(int[] keys,
double[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(Int2DoubleMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(java.lang.Integer[] keys,
java.lang.Double[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(IntStrategy strategy)
Helper function to unify code
|
Int2DoubleOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map,
IntStrategy strategy)
Helper function to unify code
|
ImmutableInt2DoubleOpenHashMap |
immutable(int[] keys,
double[] values)
Helper function to unify code
|
ImmutableInt2DoubleOpenHashMap |
immutable(Int2DoubleMap map)
Helper function to unify code
|
ImmutableInt2DoubleOpenHashMap |
immutable(java.lang.Integer[] keys,
java.lang.Double[] values)
Helper function to unify code
|
ImmutableInt2DoubleOpenHashMap |
immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
Helper function to unify code
|
Int2DoubleLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Int2DoubleLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Int2DoubleLinkedOpenHashMap |
linkedMap(int[] keys,
double[] values)
Helper function to unify code
|
Int2DoubleLinkedOpenHashMap |
linkedMap(Int2DoubleMap map)
Helper function to unify code
|
Int2DoubleLinkedOpenHashMap |
linkedMap(java.lang.Integer[] keys,
java.lang.Double[] values)
Helper function to unify code
|
ImmutableInt2DoubleOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
Helper function to unify code
|
Int2DoubleOpenHashMap |
map()
Helper function to unify code
|
Int2DoubleOpenHashMap |
map(int size)
Helper function to unify code
|
Int2DoubleOpenHashMap |
map(int[] keys,
double[] values)
Helper function to unify code
|
Int2DoubleOpenHashMap |
map(Int2DoubleMap map)
Helper function to unify code
|
Int2DoubleOpenHashMap |
map(java.lang.Integer[] keys,
java.lang.Double[] values)
Helper function to unify code
|
Int2DoubleOpenHashMap |
map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
Helper function to unify code
|
Int2DoubleMap.BuilderCache |
put(int 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
|
Int2DoubleMap.BuilderCache |
put(java.lang.Integer 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
|
Int2DoubleRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Int2DoubleRBTreeMap |
rbTreeMap(int[] keys,
double[] values,
IntComparator comp)
Helper function to unify code
|
Int2DoubleRBTreeMap |
rbTreeMap(Int2DoubleMap map,
IntComparator comp)
Helper function to unify code
|
Int2DoubleRBTreeMap |
rbTreeMap(IntComparator comp)
Helper function to unify code
|
Int2DoubleRBTreeMap |
rbTreeMap(java.lang.Integer[] keys,
java.lang.Double[] values,
IntComparator comp)
Helper function to unify code
|
Int2DoubleRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map,
IntComparator comp)
Helper function to unify code
|
Int2DoubleMap.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
|
Int2DoubleMap.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 Int2DoubleMap.BuilderCache start()
public Int2DoubleMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Int2DoubleMap.BuilderCache put(int key, double value)
key - the key that should be addedvalue - the value that should be addedpublic Int2DoubleMap.BuilderCache put(java.lang.Integer key, java.lang.Double value)
key - the key that should be addedvalue - the value that should be addedpublic Int2DoubleOpenHashMap map()
public Int2DoubleOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Int2DoubleOpenHashMap map(int[] 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 Int2DoubleOpenHashMap map(java.lang.Integer[] 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 Int2DoubleOpenHashMap map(Int2DoubleMap map)
map - that should be clonedpublic Int2DoubleOpenHashMap map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
map - that should be clonedpublic Int2DoubleLinkedOpenHashMap linkedMap()
public Int2DoubleLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Int2DoubleLinkedOpenHashMap linkedMap(int[] 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 Int2DoubleLinkedOpenHashMap linkedMap(java.lang.Integer[] 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 Int2DoubleLinkedOpenHashMap linkedMap(Int2DoubleMap map)
map - that should be clonedpublic ImmutableInt2DoubleOpenHashMap linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
map - that should be clonedpublic ImmutableInt2DoubleOpenHashMap immutable(int[] 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 ImmutableInt2DoubleOpenHashMap immutable(java.lang.Integer[] 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 ImmutableInt2DoubleOpenHashMap immutable(Int2DoubleMap map)
map - that should be clonedpublic ImmutableInt2DoubleOpenHashMap immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
map - that should be clonedpublic Int2DoubleOpenCustomHashMap customMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2DoubleOpenCustomHashMap customMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2DoubleOpenCustomHashMap customMap(int[] keys, double[] values, IntStrategy 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 Int2DoubleOpenCustomHashMap customMap(java.lang.Integer[] keys, java.lang.Double[] values, IntStrategy 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 Int2DoubleOpenCustomHashMap customMap(Int2DoubleMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2DoubleOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2DoubleLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2DoubleLinkedOpenCustomHashMap customLinkedMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2DoubleLinkedOpenCustomHashMap customLinkedMap(int[] keys, double[] values, IntStrategy 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 Int2DoubleLinkedOpenCustomHashMap customLinkedMap(java.lang.Integer[] keys, java.lang.Double[] values, IntStrategy 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 Int2DoubleLinkedOpenCustomHashMap customLinkedMap(Int2DoubleMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2DoubleLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2DoubleArrayMap arrayMap()
public Int2DoubleArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Int2DoubleArrayMap arrayMap(int[] 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 Int2DoubleArrayMap arrayMap(java.lang.Integer[] 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 Int2DoubleArrayMap arrayMap(Int2DoubleMap map)
map - that should be clonedpublic Int2DoubleArrayMap arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map)
map - that should be clonedpublic Int2DoubleRBTreeMap rbTreeMap()
public Int2DoubleRBTreeMap rbTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2DoubleRBTreeMap rbTreeMap(int[] keys, double[] values, IntComparator 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 Int2DoubleRBTreeMap rbTreeMap(java.lang.Integer[] keys, java.lang.Double[] values, IntComparator 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 Int2DoubleRBTreeMap rbTreeMap(Int2DoubleMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2DoubleRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2DoubleAVLTreeMap avlTreeMap()
public Int2DoubleAVLTreeMap avlTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2DoubleAVLTreeMap avlTreeMap(int[] keys, double[] values, IntComparator 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 Int2DoubleAVLTreeMap avlTreeMap(java.lang.Integer[] keys, java.lang.Double[] values, IntComparator 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 Int2DoubleAVLTreeMap avlTreeMap(Int2DoubleMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2DoubleAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Double> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap