public static final class Object2FloatMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T> Object2FloatArrayMap<T> |
arrayMap()
Helper function to unify code
|
<T> Object2FloatArrayMap<T> |
arrayMap(int size)
Helper function to unify code
|
<T> Object2FloatArrayMap<T> |
arrayMap(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T> Object2FloatArrayMap<T> |
arrayMap(Object2FloatMap<T> map)
Helper function to unify code
|
<T> Object2FloatArrayMap<T> |
arrayMap(T[] keys,
float[] values)
Helper function to unify code
|
<T> Object2FloatArrayMap<T> |
arrayMap(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap()
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap(java.util.Map<? extends T,? extends java.lang.Float> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap(Object2FloatMap<T> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap(T[] keys,
float[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatAVLTreeMap<T> |
avlTreeMap(T[] keys,
java.lang.Float[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(java.util.Map<? extends T,? extends java.lang.Float> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(Object2FloatMap<T> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(T[] keys,
float[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatLinkedOpenCustomHashMap<T> |
customLinkedMap(T[] keys,
java.lang.Float[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(java.util.Map<? extends T,? extends java.lang.Float> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(Object2FloatMap<T> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(T[] keys,
float[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2FloatOpenCustomHashMap<T> |
customMap(T[] keys,
java.lang.Float[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(Object2FloatMap<T> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(T[] keys,
float[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T> ImmutableObject2FloatOpenHashMap<T> |
immutable(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T> ImmutableObject2FloatOpenHashMap<T> |
immutable(Object2FloatMap<T> map)
Helper function to unify code
|
<T> ImmutableObject2FloatOpenHashMap<T> |
immutable(T[] keys,
float[] values)
Helper function to unify code
|
<T> ImmutableObject2FloatOpenHashMap<T> |
immutable(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(Object2FloatMap<T> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(T[] keys,
float[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T> Object2FloatLinkedOpenHashMap<T> |
linkedMap()
Helper function to unify code
|
<T> Object2FloatLinkedOpenHashMap<T> |
linkedMap(int size)
Helper function to unify code
|
<T> ImmutableObject2FloatOpenHashMap<T> |
linkedMap(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T> Object2FloatLinkedOpenHashMap<T> |
linkedMap(Object2FloatMap<T> map)
Helper function to unify code
|
<T> Object2FloatLinkedOpenHashMap<T> |
linkedMap(T[] keys,
float[] values)
Helper function to unify code
|
<T> Object2FloatLinkedOpenHashMap<T> |
linkedMap(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map()
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map(int size)
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map(java.util.Map<? extends T,? extends java.lang.Float> map)
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map(Object2FloatMap<T> map)
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map(T[] keys,
float[] values)
Helper function to unify code
|
<T> Object2FloatOpenHashMap<T> |
map(T[] keys,
java.lang.Float[] values)
Helper function to unify code
|
<T> Object2FloatMap.BuilderCache<T> |
put(T 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
|
<T> Object2FloatMap.BuilderCache<T> |
put(T 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
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap()
Helper function to unify code
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap(java.util.Map<? extends T,? extends java.lang.Float> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap(Object2FloatMap<T> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap(T[] keys,
float[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatRBTreeMap<T> |
rbTreeMap(T[] keys,
java.lang.Float[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2FloatMap.BuilderCache<T> |
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
|
<T> Object2FloatMap.BuilderCache<T> |
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 <T> Object2FloatMap.BuilderCache<T> start()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatMap.BuilderCache<T> start(int size)
T - the type of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <T> Object2FloatMap.BuilderCache<T> put(T key, float value)
T - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <T> Object2FloatMap.BuilderCache<T> put(T key, java.lang.Float value)
T - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <T> Object2FloatOpenHashMap<T> map()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatOpenHashMap<T> map(int size)
T - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2FloatOpenHashMap<T> map(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatOpenHashMap<T> map(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatOpenHashMap<T> map(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2FloatOpenHashMap<T> map(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2FloatLinkedOpenHashMap<T> linkedMap()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatLinkedOpenHashMap<T> linkedMap(int size)
T - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2FloatLinkedOpenHashMap<T> linkedMap(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatLinkedOpenHashMap<T> linkedMap(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatLinkedOpenHashMap<T> linkedMap(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2FloatOpenHashMap<T> linkedMap(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2FloatOpenHashMap<T> immutable(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> ImmutableObject2FloatOpenHashMap<T> immutable(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> ImmutableObject2FloatOpenHashMap<T> immutable(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2FloatOpenHashMap<T> immutable(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T extends java.lang.Enum<T>> Enum2FloatMap<T> enumMap(java.lang.Class<T> keyType)
T - the type of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>> Enum2FloatMap<T> enumMap(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> Enum2FloatMap<T> enumMap(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> Enum2FloatMap<T> enumMap(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> Enum2FloatMap<T> enumMap(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> LinkedEnum2FloatMap<T> linkedEnumMap(java.lang.Class<T> keyType)
T - the type of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>> LinkedEnum2FloatMap<T> linkedEnumMap(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> LinkedEnum2FloatMap<T> linkedEnumMap(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> LinkedEnum2FloatMap<T> linkedEnumMap(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> LinkedEnum2FloatMap<T> linkedEnumMap(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T> Object2FloatOpenCustomHashMap<T> customMap(ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T> Object2FloatOpenCustomHashMap<T> customMap(int size, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T> Object2FloatOpenCustomHashMap<T> customMap(T[] keys, float[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatOpenCustomHashMap<T> customMap(T[] keys, java.lang.Float[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatOpenCustomHashMap<T> customMap(Object2FloatMap<T> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2FloatOpenCustomHashMap<T> customMap(java.util.Map<? extends T,? extends java.lang.Float> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(int size, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, float[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, java.lang.Float[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(Object2FloatMap<T> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2FloatLinkedOpenCustomHashMap<T> customLinkedMap(java.util.Map<? extends T,? extends java.lang.Float> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2FloatArrayMap<T> arrayMap()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatArrayMap<T> arrayMap(int size)
T - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2FloatArrayMap<T> arrayMap(T[] keys, float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatArrayMap<T> arrayMap(T[] keys, java.lang.Float[] values)
T - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2FloatArrayMap<T> arrayMap(Object2FloatMap<T> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2FloatArrayMap<T> arrayMap(java.util.Map<? extends T,? extends java.lang.Float> map)
T - the type of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2FloatRBTreeMap<T> rbTreeMap()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatRBTreeMap<T> rbTreeMap(java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T> Object2FloatRBTreeMap<T> rbTreeMap(T[] keys, float[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatRBTreeMap<T> rbTreeMap(T[] keys, java.lang.Float[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatRBTreeMap<T> rbTreeMap(Object2FloatMap<T> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2FloatRBTreeMap<T> rbTreeMap(java.util.Map<? extends T,? extends java.lang.Float> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2FloatAVLTreeMap<T> avlTreeMap()
T - the type of elements maintained by this Collectionpublic <T> Object2FloatAVLTreeMap<T> avlTreeMap(java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T> Object2FloatAVLTreeMap<T> avlTreeMap(T[] keys, float[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatAVLTreeMap<T> avlTreeMap(T[] keys, java.lang.Float[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionkeys - 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 <T> Object2FloatAVLTreeMap<T> avlTreeMap(Object2FloatMap<T> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2FloatAVLTreeMap<T> avlTreeMap(java.util.Map<? extends T,? extends java.lang.Float> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap