public static final class Long2ObjectMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<V> Long2ObjectArrayMap<V> |
arrayMap()
Helper function to unify code
|
<V> Long2ObjectArrayMap<V> |
arrayMap(int size)
Helper function to unify code
|
<V> Long2ObjectArrayMap<V> |
arrayMap(long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectArrayMap<V> |
arrayMap(java.lang.Long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectArrayMap<V> |
arrayMap(Long2ObjectMap<V> map)
Helper function to unify code
|
<V> Long2ObjectArrayMap<V> |
arrayMap(java.util.Map<? extends java.lang.Long,? extends V> map)
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap()
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap(long[] keys,
V[] values,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap(java.lang.Long[] keys,
V[] values,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap(Long2ObjectMap<V> map,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap(LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectAVLTreeMap<V> |
avlTreeMap(java.util.Map<? extends java.lang.Long,? extends V> map,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(int size,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(long[] keys,
V[] values,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.lang.Long[] keys,
V[] values,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(Long2ObjectMap<V> map,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.util.Map<? extends java.lang.Long,? extends V> map,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(int size,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(long[] keys,
V[] values,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(java.lang.Long[] keys,
V[] values,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(Long2ObjectMap<V> map,
LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(LongStrategy strategy)
Helper function to unify code
|
<V> Long2ObjectOpenCustomHashMap<V> |
customMap(java.util.Map<? extends java.lang.Long,? extends V> map,
LongStrategy strategy)
Helper function to unify code
|
<V> ImmutableLong2ObjectOpenHashMap<V> |
immutable(long[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableLong2ObjectOpenHashMap<V> |
immutable(java.lang.Long[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableLong2ObjectOpenHashMap<V> |
immutable(Long2ObjectMap<V> map)
Helper function to unify code
|
<V> ImmutableLong2ObjectOpenHashMap<V> |
immutable(java.util.Map<? extends java.lang.Long,? extends V> map)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenHashMap<V> |
linkedMap()
Helper function to unify code
|
<V> Long2ObjectLinkedOpenHashMap<V> |
linkedMap(int size)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenHashMap<V> |
linkedMap(long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenHashMap<V> |
linkedMap(java.lang.Long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectLinkedOpenHashMap<V> |
linkedMap(Long2ObjectMap<V> map)
Helper function to unify code
|
<V> ImmutableLong2ObjectOpenHashMap<V> |
linkedMap(java.util.Map<? extends java.lang.Long,? extends V> map)
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map()
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map(int size)
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map(long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map(java.lang.Long[] keys,
V[] values)
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map(Long2ObjectMap<V> map)
Helper function to unify code
|
<V> Long2ObjectOpenHashMap<V> |
map(java.util.Map<? extends java.lang.Long,? extends V> map)
Helper function to unify code
|
<V> Long2ObjectMap.BuilderCache<V> |
put(long 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> Long2ObjectMap.BuilderCache<V> |
put(java.lang.Long 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> Long2ObjectRBTreeMap<V> |
rbTreeMap()
Helper function to unify code
|
<V> Long2ObjectRBTreeMap<V> |
rbTreeMap(long[] keys,
V[] values,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectRBTreeMap<V> |
rbTreeMap(java.lang.Long[] keys,
V[] values,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectRBTreeMap<V> |
rbTreeMap(Long2ObjectMap<V> map,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectRBTreeMap<V> |
rbTreeMap(LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectRBTreeMap<V> |
rbTreeMap(java.util.Map<? extends java.lang.Long,? extends V> map,
LongComparator comp)
Helper function to unify code
|
<V> Long2ObjectMap.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> Long2ObjectMap.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> Long2ObjectMap.BuilderCache<V> start()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectMap.BuilderCache<V> start(int size)
V - the type of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <V> Long2ObjectMap.BuilderCache<V> put(long key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Long2ObjectMap.BuilderCache<V> put(java.lang.Long key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Long2ObjectOpenHashMap<V> map()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectOpenHashMap<V> map(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Long2ObjectOpenHashMap<V> map(long[] keys, V[] values)
V - 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 <V> Long2ObjectOpenHashMap<V> map(java.lang.Long[] keys, V[] values)
V - 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 <V> Long2ObjectOpenHashMap<V> map(Long2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Long2ObjectOpenHashMap<V> map(java.util.Map<? extends java.lang.Long,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Long2ObjectLinkedOpenHashMap<V> linkedMap()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectLinkedOpenHashMap<V> linkedMap(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Long2ObjectLinkedOpenHashMap<V> linkedMap(long[] keys, V[] values)
V - 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 <V> Long2ObjectLinkedOpenHashMap<V> linkedMap(java.lang.Long[] keys, V[] values)
V - 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 <V> Long2ObjectLinkedOpenHashMap<V> linkedMap(Long2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableLong2ObjectOpenHashMap<V> linkedMap(java.util.Map<? extends java.lang.Long,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableLong2ObjectOpenHashMap<V> immutable(long[] keys, V[] values)
V - 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 <V> ImmutableLong2ObjectOpenHashMap<V> immutable(java.lang.Long[] keys, V[] values)
V - 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 <V> ImmutableLong2ObjectOpenHashMap<V> immutable(Long2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableLong2ObjectOpenHashMap<V> immutable(java.util.Map<? extends java.lang.Long,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Long2ObjectOpenCustomHashMap<V> customMap(LongStrategy strategy)
V - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Long2ObjectOpenCustomHashMap<V> customMap(int size, LongStrategy strategy)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Long2ObjectOpenCustomHashMap<V> customMap(long[] keys, V[] values, LongStrategy strategy)
V - 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 <V> Long2ObjectOpenCustomHashMap<V> customMap(java.lang.Long[] keys, V[] values, LongStrategy strategy)
V - 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 <V> Long2ObjectOpenCustomHashMap<V> customMap(Long2ObjectMap<V> map, LongStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Long2ObjectOpenCustomHashMap<V> customMap(java.util.Map<? extends java.lang.Long,? extends V> map, LongStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(LongStrategy strategy)
V - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(int size, LongStrategy strategy)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(long[] keys, V[] values, LongStrategy strategy)
V - 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 <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.lang.Long[] keys, V[] values, LongStrategy strategy)
V - 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 <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Long2ObjectMap<V> map, LongStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.util.Map<? extends java.lang.Long,? extends V> map, LongStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Long2ObjectArrayMap<V> arrayMap()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectArrayMap<V> arrayMap(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Long2ObjectArrayMap<V> arrayMap(long[] keys, V[] values)
V - 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 <V> Long2ObjectArrayMap<V> arrayMap(java.lang.Long[] keys, V[] values)
V - 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 <V> Long2ObjectArrayMap<V> arrayMap(Long2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Long2ObjectArrayMap<V> arrayMap(java.util.Map<? extends java.lang.Long,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Long2ObjectRBTreeMap<V> rbTreeMap()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectRBTreeMap<V> rbTreeMap(LongComparator comp)
V - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Long2ObjectRBTreeMap<V> rbTreeMap(long[] keys, V[] values, LongComparator comp)
V - 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 <V> Long2ObjectRBTreeMap<V> rbTreeMap(java.lang.Long[] keys, V[] values, LongComparator comp)
V - 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 <V> Long2ObjectRBTreeMap<V> rbTreeMap(Long2ObjectMap<V> map, LongComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Long2ObjectRBTreeMap<V> rbTreeMap(java.util.Map<? extends java.lang.Long,? extends V> map, LongComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Long2ObjectAVLTreeMap<V> avlTreeMap()
V - the type of elements maintained by this Collectionpublic <V> Long2ObjectAVLTreeMap<V> avlTreeMap(LongComparator comp)
V - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Long2ObjectAVLTreeMap<V> avlTreeMap(long[] keys, V[] values, LongComparator comp)
V - 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 <V> Long2ObjectAVLTreeMap<V> avlTreeMap(java.lang.Long[] keys, V[] values, LongComparator comp)
V - 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 <V> Long2ObjectAVLTreeMap<V> avlTreeMap(Long2ObjectMap<V> map, LongComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Long2ObjectAVLTreeMap<V> avlTreeMap(java.util.Map<? extends java.lang.Long,? extends V> map, LongComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap