public static final class Long2DoubleMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Long2DoubleArrayMap |
arrayMap()
Helper function to unify code
|
Long2DoubleArrayMap |
arrayMap(int size)
Helper function to unify code
|
Long2DoubleArrayMap |
arrayMap(long[] keys,
double[] values)
Helper function to unify code
|
Long2DoubleArrayMap |
arrayMap(java.lang.Long[] keys,
java.lang.Double[] values)
Helper function to unify code
|
Long2DoubleArrayMap |
arrayMap(Long2DoubleMap map)
Helper function to unify code
|
Long2DoubleArrayMap |
arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap(long[] keys,
double[] values,
LongComparator comp)
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap(java.lang.Long[] keys,
java.lang.Double[] values,
LongComparator comp)
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap(Long2DoubleMap map,
LongComparator comp)
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap(LongComparator comp)
Helper function to unify code
|
Long2DoubleAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map,
LongComparator comp)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(long[] keys,
double[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Long[] keys,
java.lang.Double[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(Long2DoubleMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(LongStrategy strategy)
Helper function to unify code
|
Long2DoubleLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(long[] keys,
double[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(java.lang.Long[] keys,
java.lang.Double[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(Long2DoubleMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(LongStrategy strategy)
Helper function to unify code
|
Long2DoubleOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map,
LongStrategy strategy)
Helper function to unify code
|
ImmutableLong2DoubleOpenHashMap |
immutable(long[] keys,
double[] values)
Helper function to unify code
|
ImmutableLong2DoubleOpenHashMap |
immutable(java.lang.Long[] keys,
java.lang.Double[] values)
Helper function to unify code
|
ImmutableLong2DoubleOpenHashMap |
immutable(Long2DoubleMap map)
Helper function to unify code
|
ImmutableLong2DoubleOpenHashMap |
immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
Helper function to unify code
|
Long2DoubleLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Long2DoubleLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Long2DoubleLinkedOpenHashMap |
linkedMap(long[] keys,
double[] values)
Helper function to unify code
|
Long2DoubleLinkedOpenHashMap |
linkedMap(java.lang.Long[] keys,
java.lang.Double[] values)
Helper function to unify code
|
Long2DoubleLinkedOpenHashMap |
linkedMap(Long2DoubleMap map)
Helper function to unify code
|
ImmutableLong2DoubleOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
Helper function to unify code
|
Long2DoubleOpenHashMap |
map()
Helper function to unify code
|
Long2DoubleOpenHashMap |
map(int size)
Helper function to unify code
|
Long2DoubleOpenHashMap |
map(long[] keys,
double[] values)
Helper function to unify code
|
Long2DoubleOpenHashMap |
map(java.lang.Long[] keys,
java.lang.Double[] values)
Helper function to unify code
|
Long2DoubleOpenHashMap |
map(Long2DoubleMap map)
Helper function to unify code
|
Long2DoubleOpenHashMap |
map(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
Helper function to unify code
|
Long2DoubleMap.BuilderCache |
put(long 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
|
Long2DoubleMap.BuilderCache |
put(java.lang.Long 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
|
Long2DoubleRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Long2DoubleRBTreeMap |
rbTreeMap(long[] keys,
double[] values,
LongComparator comp)
Helper function to unify code
|
Long2DoubleRBTreeMap |
rbTreeMap(java.lang.Long[] keys,
java.lang.Double[] values,
LongComparator comp)
Helper function to unify code
|
Long2DoubleRBTreeMap |
rbTreeMap(Long2DoubleMap map,
LongComparator comp)
Helper function to unify code
|
Long2DoubleRBTreeMap |
rbTreeMap(LongComparator comp)
Helper function to unify code
|
Long2DoubleRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map,
LongComparator comp)
Helper function to unify code
|
Long2DoubleMap.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
|
Long2DoubleMap.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 Long2DoubleMap.BuilderCache start()
public Long2DoubleMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Long2DoubleMap.BuilderCache put(long key, double value)
key - the key that should be addedvalue - the value that should be addedpublic Long2DoubleMap.BuilderCache put(java.lang.Long key, java.lang.Double value)
key - the key that should be addedvalue - the value that should be addedpublic Long2DoubleOpenHashMap map()
public Long2DoubleOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Long2DoubleOpenHashMap map(long[] 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 Long2DoubleOpenHashMap map(java.lang.Long[] 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 Long2DoubleOpenHashMap map(Long2DoubleMap map)
map - that should be clonedpublic Long2DoubleOpenHashMap map(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
map - that should be clonedpublic Long2DoubleLinkedOpenHashMap linkedMap()
public Long2DoubleLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Long2DoubleLinkedOpenHashMap linkedMap(long[] 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 Long2DoubleLinkedOpenHashMap linkedMap(java.lang.Long[] 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 Long2DoubleLinkedOpenHashMap linkedMap(Long2DoubleMap map)
map - that should be clonedpublic ImmutableLong2DoubleOpenHashMap linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
map - that should be clonedpublic ImmutableLong2DoubleOpenHashMap immutable(long[] 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 ImmutableLong2DoubleOpenHashMap immutable(java.lang.Long[] 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 ImmutableLong2DoubleOpenHashMap immutable(Long2DoubleMap map)
map - that should be clonedpublic ImmutableLong2DoubleOpenHashMap immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
map - that should be clonedpublic Long2DoubleOpenCustomHashMap customMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2DoubleOpenCustomHashMap customMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2DoubleOpenCustomHashMap customMap(long[] keys, double[] values, LongStrategy 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 Long2DoubleOpenCustomHashMap customMap(java.lang.Long[] keys, java.lang.Double[] values, LongStrategy 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 Long2DoubleOpenCustomHashMap customMap(Long2DoubleMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2DoubleOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2DoubleLinkedOpenCustomHashMap customLinkedMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2DoubleLinkedOpenCustomHashMap customLinkedMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2DoubleLinkedOpenCustomHashMap customLinkedMap(long[] keys, double[] values, LongStrategy 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 Long2DoubleLinkedOpenCustomHashMap customLinkedMap(java.lang.Long[] keys, java.lang.Double[] values, LongStrategy 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 Long2DoubleLinkedOpenCustomHashMap customLinkedMap(Long2DoubleMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2DoubleLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2DoubleArrayMap arrayMap()
public Long2DoubleArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Long2DoubleArrayMap arrayMap(long[] 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 Long2DoubleArrayMap arrayMap(java.lang.Long[] 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 Long2DoubleArrayMap arrayMap(Long2DoubleMap map)
map - that should be clonedpublic Long2DoubleArrayMap arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map)
map - that should be clonedpublic Long2DoubleRBTreeMap rbTreeMap()
public Long2DoubleRBTreeMap rbTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2DoubleRBTreeMap rbTreeMap(long[] keys, double[] values, LongComparator 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 Long2DoubleRBTreeMap rbTreeMap(java.lang.Long[] keys, java.lang.Double[] values, LongComparator 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 Long2DoubleRBTreeMap rbTreeMap(Long2DoubleMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2DoubleRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2DoubleAVLTreeMap avlTreeMap()
public Long2DoubleAVLTreeMap avlTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2DoubleAVLTreeMap avlTreeMap(long[] keys, double[] values, LongComparator 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 Long2DoubleAVLTreeMap avlTreeMap(java.lang.Long[] keys, java.lang.Double[] values, LongComparator 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 Long2DoubleAVLTreeMap avlTreeMap(Long2DoubleMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2DoubleAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Double> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap