public static final class Double2ObjectMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<V> Double2ObjectArrayMap<V> |
arrayMap()
Helper function to unify code
|
<V> Double2ObjectArrayMap<V> |
arrayMap(double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectArrayMap<V> |
arrayMap(java.lang.Double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectArrayMap<V> |
arrayMap(Double2ObjectMap<V> map)
Helper function to unify code
|
<V> Double2ObjectArrayMap<V> |
arrayMap(int size)
Helper function to unify code
|
<V> Double2ObjectArrayMap<V> |
arrayMap(java.util.Map<? extends java.lang.Double,? extends V> map)
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap()
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap(double[] keys,
V[] values,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap(java.lang.Double[] keys,
V[] values,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap(Double2ObjectMap<V> map,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap(DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectAVLTreeMap<V> |
avlTreeMap(java.util.Map<? extends java.lang.Double,? extends V> map,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(double[] keys,
V[] values,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.lang.Double[] keys,
V[] values,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(Double2ObjectMap<V> map,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(int size,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.util.Map<? extends java.lang.Double,? extends V> map,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(double[] keys,
V[] values,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(java.lang.Double[] keys,
V[] values,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(Double2ObjectMap<V> map,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(int size,
DoubleStrategy strategy)
Helper function to unify code
|
<V> Double2ObjectOpenCustomHashMap<V> |
customMap(java.util.Map<? extends java.lang.Double,? extends V> map,
DoubleStrategy strategy)
Helper function to unify code
|
<V> ImmutableDouble2ObjectOpenHashMap<V> |
immutable(double[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableDouble2ObjectOpenHashMap<V> |
immutable(java.lang.Double[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableDouble2ObjectOpenHashMap<V> |
immutable(Double2ObjectMap<V> map)
Helper function to unify code
|
<V> ImmutableDouble2ObjectOpenHashMap<V> |
immutable(java.util.Map<? extends java.lang.Double,? extends V> map)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenHashMap<V> |
linkedMap()
Helper function to unify code
|
<V> Double2ObjectLinkedOpenHashMap<V> |
linkedMap(double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenHashMap<V> |
linkedMap(java.lang.Double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenHashMap<V> |
linkedMap(Double2ObjectMap<V> map)
Helper function to unify code
|
<V> Double2ObjectLinkedOpenHashMap<V> |
linkedMap(int size)
Helper function to unify code
|
<V> ImmutableDouble2ObjectOpenHashMap<V> |
linkedMap(java.util.Map<? extends java.lang.Double,? extends V> map)
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map()
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map(double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map(java.lang.Double[] keys,
V[] values)
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map(Double2ObjectMap<V> map)
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map(int size)
Helper function to unify code
|
<V> Double2ObjectOpenHashMap<V> |
map(java.util.Map<? extends java.lang.Double,? extends V> map)
Helper function to unify code
|
<V> Double2ObjectMap.BuilderCache<V> |
put(double key,
V 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
|
<V> Double2ObjectMap.BuilderCache<V> |
put(java.lang.Double key,
V 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
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap()
Helper function to unify code
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap(double[] keys,
V[] values,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap(java.lang.Double[] keys,
V[] values,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap(Double2ObjectMap<V> map,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap(DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectRBTreeMap<V> |
rbTreeMap(java.util.Map<? extends java.lang.Double,? extends V> map,
DoubleComparator comp)
Helper function to unify code
|
<V> Double2ObjectMap.BuilderCache<V> |
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
|
<V> Double2ObjectMap.BuilderCache<V> |
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 <V> Double2ObjectMap.BuilderCache<V> start()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectMap.BuilderCache<V> start(int size)
V - the keyType of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <V> Double2ObjectMap.BuilderCache<V> put(double key, V value)
V - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Double2ObjectMap.BuilderCache<V> put(java.lang.Double key, V value)
V - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Double2ObjectOpenHashMap<V> map()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectOpenHashMap<V> map(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Double2ObjectOpenHashMap<V> map(double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectOpenHashMap<V> map(java.lang.Double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectOpenHashMap<V> map(Double2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Double2ObjectOpenHashMap<V> map(java.util.Map<? extends java.lang.Double,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Double2ObjectLinkedOpenHashMap<V> linkedMap()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectLinkedOpenHashMap<V> linkedMap(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Double2ObjectLinkedOpenHashMap<V> linkedMap(double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectLinkedOpenHashMap<V> linkedMap(java.lang.Double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectLinkedOpenHashMap<V> linkedMap(Double2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableDouble2ObjectOpenHashMap<V> linkedMap(java.util.Map<? extends java.lang.Double,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableDouble2ObjectOpenHashMap<V> immutable(double[] keys, V[] values)
V - the keyType 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 <V> ImmutableDouble2ObjectOpenHashMap<V> immutable(java.lang.Double[] keys, V[] values)
V - the keyType 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 <V> ImmutableDouble2ObjectOpenHashMap<V> immutable(Double2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableDouble2ObjectOpenHashMap<V> immutable(java.util.Map<? extends java.lang.Double,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Double2ObjectOpenCustomHashMap<V> customMap(DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Double2ObjectOpenCustomHashMap<V> customMap(int size, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Double2ObjectOpenCustomHashMap<V> customMap(double[] keys, V[] values, DoubleStrategy strategy)
V - the keyType 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 <V> Double2ObjectOpenCustomHashMap<V> customMap(java.lang.Double[] keys, V[] values, DoubleStrategy strategy)
V - the keyType 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 <V> Double2ObjectOpenCustomHashMap<V> customMap(Double2ObjectMap<V> map, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Double2ObjectOpenCustomHashMap<V> customMap(java.util.Map<? extends java.lang.Double,? extends V> map, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(int size, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(double[] keys, V[] values, DoubleStrategy strategy)
V - the keyType 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 <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.lang.Double[] keys, V[] values, DoubleStrategy strategy)
V - the keyType 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 <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Double2ObjectMap<V> map, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Double2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.util.Map<? extends java.lang.Double,? extends V> map, DoubleStrategy strategy)
V - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Double2ObjectArrayMap<V> arrayMap()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectArrayMap<V> arrayMap(int size)
V - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Double2ObjectArrayMap<V> arrayMap(double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectArrayMap<V> arrayMap(java.lang.Double[] keys, V[] values)
V - the keyType 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 <V> Double2ObjectArrayMap<V> arrayMap(Double2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Double2ObjectArrayMap<V> arrayMap(java.util.Map<? extends java.lang.Double,? extends V> map)
V - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <V> Double2ObjectRBTreeMap<V> rbTreeMap()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectRBTreeMap<V> rbTreeMap(DoubleComparator comp)
V - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Double2ObjectRBTreeMap<V> rbTreeMap(double[] keys, V[] values, DoubleComparator comp)
V - the keyType 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 <V> Double2ObjectRBTreeMap<V> rbTreeMap(java.lang.Double[] keys, V[] values, DoubleComparator comp)
V - the keyType 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 <V> Double2ObjectRBTreeMap<V> rbTreeMap(Double2ObjectMap<V> map, DoubleComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Double2ObjectRBTreeMap<V> rbTreeMap(java.util.Map<? extends java.lang.Double,? extends V> map, DoubleComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Double2ObjectAVLTreeMap<V> avlTreeMap()
V - the keyType of elements maintained by this Collectionpublic <V> Double2ObjectAVLTreeMap<V> avlTreeMap(DoubleComparator comp)
V - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Double2ObjectAVLTreeMap<V> avlTreeMap(double[] keys, V[] values, DoubleComparator comp)
V - the keyType 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 <V> Double2ObjectAVLTreeMap<V> avlTreeMap(java.lang.Double[] keys, V[] values, DoubleComparator comp)
V - the keyType 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 <V> Double2ObjectAVLTreeMap<V> avlTreeMap(Double2ObjectMap<V> map, DoubleComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Double2ObjectAVLTreeMap<V> avlTreeMap(java.util.Map<? extends java.lang.Double,? extends V> map, DoubleComparator comp)
V - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap