public static final class Float2IntMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Float2IntArrayMap |
arrayMap()
Helper function to unify code
|
Float2IntArrayMap |
arrayMap(float[] keys,
int[] values)
Helper function to unify code
|
Float2IntArrayMap |
arrayMap(java.lang.Float[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Float2IntArrayMap |
arrayMap(Float2IntMap map)
Helper function to unify code
|
Float2IntArrayMap |
arrayMap(int size)
Helper function to unify code
|
Float2IntArrayMap |
arrayMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap(float[] keys,
int[] values,
FloatComparator comp)
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap(java.lang.Float[] keys,
java.lang.Integer[] values,
FloatComparator comp)
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap(Float2IntMap map,
FloatComparator comp)
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap(FloatComparator comp)
Helper function to unify code
|
Float2IntAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map,
FloatComparator comp)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(float[] keys,
int[] values,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Float[] keys,
java.lang.Integer[] values,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(Float2IntMap map,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(FloatStrategy strategy)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(int size,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(float[] keys,
int[] values,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(java.lang.Float[] keys,
java.lang.Integer[] values,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(Float2IntMap map,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(int size,
FloatStrategy strategy)
Helper function to unify code
|
Float2IntOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map,
FloatStrategy strategy)
Helper function to unify code
|
ImmutableFloat2IntOpenHashMap |
immutable(float[] keys,
int[] values)
Helper function to unify code
|
ImmutableFloat2IntOpenHashMap |
immutable(java.lang.Float[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
ImmutableFloat2IntOpenHashMap |
immutable(Float2IntMap map)
Helper function to unify code
|
ImmutableFloat2IntOpenHashMap |
immutable(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
Helper function to unify code
|
Float2IntLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Float2IntLinkedOpenHashMap |
linkedMap(float[] keys,
int[] values)
Helper function to unify code
|
Float2IntLinkedOpenHashMap |
linkedMap(java.lang.Float[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Float2IntLinkedOpenHashMap |
linkedMap(Float2IntMap map)
Helper function to unify code
|
Float2IntLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableFloat2IntOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
Helper function to unify code
|
Float2IntOpenHashMap |
map()
Helper function to unify code
|
Float2IntOpenHashMap |
map(float[] keys,
int[] values)
Helper function to unify code
|
Float2IntOpenHashMap |
map(java.lang.Float[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Float2IntOpenHashMap |
map(Float2IntMap map)
Helper function to unify code
|
Float2IntOpenHashMap |
map(int size)
Helper function to unify code
|
Float2IntOpenHashMap |
map(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
Helper function to unify code
|
Float2IntMap.BuilderCache |
put(float 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
|
Float2IntMap.BuilderCache |
put(java.lang.Float 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
|
Float2IntRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Float2IntRBTreeMap |
rbTreeMap(float[] keys,
int[] values,
FloatComparator comp)
Helper function to unify code
|
Float2IntRBTreeMap |
rbTreeMap(java.lang.Float[] keys,
java.lang.Integer[] values,
FloatComparator comp)
Helper function to unify code
|
Float2IntRBTreeMap |
rbTreeMap(Float2IntMap map,
FloatComparator comp)
Helper function to unify code
|
Float2IntRBTreeMap |
rbTreeMap(FloatComparator comp)
Helper function to unify code
|
Float2IntRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map,
FloatComparator comp)
Helper function to unify code
|
Float2IntMap.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
|
Float2IntMap.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 Float2IntMap.BuilderCache start()
public Float2IntMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Float2IntMap.BuilderCache put(float key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Float2IntMap.BuilderCache put(java.lang.Float key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Float2IntOpenHashMap map()
public Float2IntOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Float2IntOpenHashMap map(float[] 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 Float2IntOpenHashMap map(java.lang.Float[] 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 Float2IntOpenHashMap map(Float2IntMap map)
map - that should be clonedpublic Float2IntOpenHashMap map(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
map - that should be clonedpublic Float2IntLinkedOpenHashMap linkedMap()
public Float2IntLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Float2IntLinkedOpenHashMap linkedMap(float[] 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 Float2IntLinkedOpenHashMap linkedMap(java.lang.Float[] 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 Float2IntLinkedOpenHashMap linkedMap(Float2IntMap map)
map - that should be clonedpublic ImmutableFloat2IntOpenHashMap linkedMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
map - that should be clonedpublic ImmutableFloat2IntOpenHashMap immutable(float[] 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 ImmutableFloat2IntOpenHashMap immutable(java.lang.Float[] 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 ImmutableFloat2IntOpenHashMap immutable(Float2IntMap map)
map - that should be clonedpublic ImmutableFloat2IntOpenHashMap immutable(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
map - that should be clonedpublic Float2IntOpenCustomHashMap customMap(FloatStrategy strategy)
strategy - the Hash Controllerpublic Float2IntOpenCustomHashMap customMap(int size, FloatStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Float2IntOpenCustomHashMap customMap(float[] keys, int[] values, FloatStrategy 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 Float2IntOpenCustomHashMap customMap(java.lang.Float[] keys, java.lang.Integer[] values, FloatStrategy 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 Float2IntOpenCustomHashMap customMap(Float2IntMap map, FloatStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Float2IntOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map, FloatStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Float2IntLinkedOpenCustomHashMap customLinkedMap(FloatStrategy strategy)
strategy - the Hash Controllerpublic Float2IntLinkedOpenCustomHashMap customLinkedMap(int size, FloatStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Float2IntLinkedOpenCustomHashMap customLinkedMap(float[] keys, int[] values, FloatStrategy 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 Float2IntLinkedOpenCustomHashMap customLinkedMap(java.lang.Float[] keys, java.lang.Integer[] values, FloatStrategy 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 Float2IntLinkedOpenCustomHashMap customLinkedMap(Float2IntMap map, FloatStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Float2IntLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map, FloatStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Float2IntArrayMap arrayMap()
public Float2IntArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Float2IntArrayMap arrayMap(float[] 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 Float2IntArrayMap arrayMap(java.lang.Float[] 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 Float2IntArrayMap arrayMap(Float2IntMap map)
map - that should be clonedpublic Float2IntArrayMap arrayMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map)
map - that should be clonedpublic Float2IntRBTreeMap rbTreeMap()
public Float2IntRBTreeMap rbTreeMap(FloatComparator comp)
comp - the Sorter of the TreeMappublic Float2IntRBTreeMap rbTreeMap(float[] keys, int[] values, FloatComparator 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 Float2IntRBTreeMap rbTreeMap(java.lang.Float[] keys, java.lang.Integer[] values, FloatComparator 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 Float2IntRBTreeMap rbTreeMap(Float2IntMap map, FloatComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Float2IntRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map, FloatComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Float2IntAVLTreeMap avlTreeMap()
public Float2IntAVLTreeMap avlTreeMap(FloatComparator comp)
comp - the Sorter of the TreeMappublic Float2IntAVLTreeMap avlTreeMap(float[] keys, int[] values, FloatComparator 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 Float2IntAVLTreeMap avlTreeMap(java.lang.Float[] keys, java.lang.Integer[] values, FloatComparator 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 Float2IntAVLTreeMap avlTreeMap(Float2IntMap map, FloatComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Float2IntAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map, FloatComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap