public static final class Int2FloatMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Int2FloatArrayMap |
arrayMap()
Helper function to unify code
|
Int2FloatArrayMap |
arrayMap(int size)
Helper function to unify code
|
Int2FloatArrayMap |
arrayMap(int[] keys,
float[] values)
Helper function to unify code
|
Int2FloatArrayMap |
arrayMap(Int2FloatMap map)
Helper function to unify code
|
Int2FloatArrayMap |
arrayMap(java.lang.Integer[] keys,
java.lang.Float[] values)
Helper function to unify code
|
Int2FloatArrayMap |
arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap(int[] keys,
float[] values,
IntComparator comp)
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap(Int2FloatMap map,
IntComparator comp)
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap(IntComparator comp)
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap(java.lang.Integer[] keys,
java.lang.Float[] values,
IntComparator comp)
Helper function to unify code
|
Int2FloatAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map,
IntComparator comp)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(int[] keys,
float[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(Int2FloatMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Integer[] keys,
java.lang.Float[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(IntStrategy strategy)
Helper function to unify code
|
Int2FloatLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(int[] keys,
float[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(Int2FloatMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(java.lang.Integer[] keys,
java.lang.Float[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(IntStrategy strategy)
Helper function to unify code
|
Int2FloatOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map,
IntStrategy strategy)
Helper function to unify code
|
ImmutableInt2FloatOpenHashMap |
immutable(int[] keys,
float[] values)
Helper function to unify code
|
ImmutableInt2FloatOpenHashMap |
immutable(Int2FloatMap map)
Helper function to unify code
|
ImmutableInt2FloatOpenHashMap |
immutable(java.lang.Integer[] keys,
java.lang.Float[] values)
Helper function to unify code
|
ImmutableInt2FloatOpenHashMap |
immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
Helper function to unify code
|
Int2FloatLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Int2FloatLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Int2FloatLinkedOpenHashMap |
linkedMap(int[] keys,
float[] values)
Helper function to unify code
|
Int2FloatLinkedOpenHashMap |
linkedMap(Int2FloatMap map)
Helper function to unify code
|
Int2FloatLinkedOpenHashMap |
linkedMap(java.lang.Integer[] keys,
java.lang.Float[] values)
Helper function to unify code
|
ImmutableInt2FloatOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
Helper function to unify code
|
Int2FloatOpenHashMap |
map()
Helper function to unify code
|
Int2FloatOpenHashMap |
map(int size)
Helper function to unify code
|
Int2FloatOpenHashMap |
map(int[] keys,
float[] values)
Helper function to unify code
|
Int2FloatOpenHashMap |
map(Int2FloatMap map)
Helper function to unify code
|
Int2FloatOpenHashMap |
map(java.lang.Integer[] keys,
java.lang.Float[] values)
Helper function to unify code
|
Int2FloatOpenHashMap |
map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
Helper function to unify code
|
Int2FloatMap.BuilderCache |
put(java.lang.Integer key,
java.lang.Float 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
|
Int2FloatMap.BuilderCache |
put(int key,
float 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
|
Int2FloatRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Int2FloatRBTreeMap |
rbTreeMap(int[] keys,
float[] values,
IntComparator comp)
Helper function to unify code
|
Int2FloatRBTreeMap |
rbTreeMap(Int2FloatMap map,
IntComparator comp)
Helper function to unify code
|
Int2FloatRBTreeMap |
rbTreeMap(IntComparator comp)
Helper function to unify code
|
Int2FloatRBTreeMap |
rbTreeMap(java.lang.Integer[] keys,
java.lang.Float[] values,
IntComparator comp)
Helper function to unify code
|
Int2FloatRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map,
IntComparator comp)
Helper function to unify code
|
Int2FloatMap.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
|
Int2FloatMap.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 Int2FloatMap.BuilderCache start()
public Int2FloatMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Int2FloatMap.BuilderCache put(int key, float value)
key - the key that should be addedvalue - the value that should be addedpublic Int2FloatMap.BuilderCache put(java.lang.Integer key, java.lang.Float value)
key - the key that should be addedvalue - the value that should be addedpublic Int2FloatOpenHashMap map()
public Int2FloatOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Int2FloatOpenHashMap map(int[] keys, float[] 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 Int2FloatOpenHashMap map(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatOpenHashMap map(Int2FloatMap map)
map - that should be clonedpublic Int2FloatOpenHashMap map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
map - that should be clonedpublic Int2FloatLinkedOpenHashMap linkedMap()
public Int2FloatLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Int2FloatLinkedOpenHashMap linkedMap(int[] keys, float[] 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 Int2FloatLinkedOpenHashMap linkedMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatLinkedOpenHashMap linkedMap(Int2FloatMap map)
map - that should be clonedpublic ImmutableInt2FloatOpenHashMap linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
map - that should be clonedpublic ImmutableInt2FloatOpenHashMap immutable(int[] keys, float[] 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 ImmutableInt2FloatOpenHashMap immutable(java.lang.Integer[] keys, java.lang.Float[] 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 ImmutableInt2FloatOpenHashMap immutable(Int2FloatMap map)
map - that should be clonedpublic ImmutableInt2FloatOpenHashMap immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
map - that should be clonedpublic Int2FloatOpenCustomHashMap customMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2FloatOpenCustomHashMap customMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2FloatOpenCustomHashMap customMap(int[] keys, float[] 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 Int2FloatOpenCustomHashMap customMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatOpenCustomHashMap customMap(Int2FloatMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2FloatOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2FloatLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2FloatLinkedOpenCustomHashMap customLinkedMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2FloatLinkedOpenCustomHashMap customLinkedMap(int[] keys, float[] 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 Int2FloatLinkedOpenCustomHashMap customLinkedMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatLinkedOpenCustomHashMap customLinkedMap(Int2FloatMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2FloatLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2FloatArrayMap arrayMap()
public Int2FloatArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Int2FloatArrayMap arrayMap(int[] keys, float[] 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 Int2FloatArrayMap arrayMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatArrayMap arrayMap(Int2FloatMap map)
map - that should be clonedpublic Int2FloatArrayMap arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map)
map - that should be clonedpublic Int2FloatRBTreeMap rbTreeMap()
public Int2FloatRBTreeMap rbTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2FloatRBTreeMap rbTreeMap(int[] keys, float[] 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 Int2FloatRBTreeMap rbTreeMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatRBTreeMap rbTreeMap(Int2FloatMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2FloatRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2FloatAVLTreeMap avlTreeMap()
public Int2FloatAVLTreeMap avlTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2FloatAVLTreeMap avlTreeMap(int[] keys, float[] 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 Int2FloatAVLTreeMap avlTreeMap(java.lang.Integer[] keys, java.lang.Float[] 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 Int2FloatAVLTreeMap avlTreeMap(Int2FloatMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2FloatAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Float> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap