public static final class Long2LongMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Long2LongArrayMap |
arrayMap()
Helper function to unify code
|
Long2LongArrayMap |
arrayMap(int size)
Helper function to unify code
|
Long2LongArrayMap |
arrayMap(long[] keys,
long[] values)
Helper function to unify code
|
Long2LongArrayMap |
arrayMap(java.lang.Long[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Long2LongArrayMap |
arrayMap(Long2LongMap map)
Helper function to unify code
|
Long2LongArrayMap |
arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap(long[] keys,
long[] values,
LongComparator comp)
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap(java.lang.Long[] keys,
java.lang.Long[] values,
LongComparator comp)
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap(Long2LongMap map,
LongComparator comp)
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap(LongComparator comp)
Helper function to unify code
|
Long2LongAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map,
LongComparator comp)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(long[] keys,
long[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Long[] keys,
java.lang.Long[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(Long2LongMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(LongStrategy strategy)
Helper function to unify code
|
Long2LongLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map,
LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(int size,
LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(long[] keys,
long[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(java.lang.Long[] keys,
java.lang.Long[] values,
LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(Long2LongMap map,
LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(LongStrategy strategy)
Helper function to unify code
|
Long2LongOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map,
LongStrategy strategy)
Helper function to unify code
|
ImmutableLong2LongOpenHashMap |
immutable(long[] keys,
long[] values)
Helper function to unify code
|
ImmutableLong2LongOpenHashMap |
immutable(java.lang.Long[] keys,
java.lang.Long[] values)
Helper function to unify code
|
ImmutableLong2LongOpenHashMap |
immutable(Long2LongMap map)
Helper function to unify code
|
ImmutableLong2LongOpenHashMap |
immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
Helper function to unify code
|
Long2LongLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Long2LongLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Long2LongLinkedOpenHashMap |
linkedMap(long[] keys,
long[] values)
Helper function to unify code
|
Long2LongLinkedOpenHashMap |
linkedMap(java.lang.Long[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Long2LongLinkedOpenHashMap |
linkedMap(Long2LongMap map)
Helper function to unify code
|
ImmutableLong2LongOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
Helper function to unify code
|
Long2LongOpenHashMap |
map()
Helper function to unify code
|
Long2LongOpenHashMap |
map(int size)
Helper function to unify code
|
Long2LongOpenHashMap |
map(long[] keys,
long[] values)
Helper function to unify code
|
Long2LongOpenHashMap |
map(java.lang.Long[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Long2LongOpenHashMap |
map(Long2LongMap map)
Helper function to unify code
|
Long2LongOpenHashMap |
map(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
Helper function to unify code
|
Long2LongMap.BuilderCache |
put(long key,
long 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
|
Long2LongMap.BuilderCache |
put(java.lang.Long key,
java.lang.Long 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
|
Long2LongRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Long2LongRBTreeMap |
rbTreeMap(long[] keys,
long[] values,
LongComparator comp)
Helper function to unify code
|
Long2LongRBTreeMap |
rbTreeMap(java.lang.Long[] keys,
java.lang.Long[] values,
LongComparator comp)
Helper function to unify code
|
Long2LongRBTreeMap |
rbTreeMap(Long2LongMap map,
LongComparator comp)
Helper function to unify code
|
Long2LongRBTreeMap |
rbTreeMap(LongComparator comp)
Helper function to unify code
|
Long2LongRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map,
LongComparator comp)
Helper function to unify code
|
Long2LongMap.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
|
Long2LongMap.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 Long2LongMap.BuilderCache start()
public Long2LongMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Long2LongMap.BuilderCache put(long key, long value)
key - the key that should be addedvalue - the value that should be addedpublic Long2LongMap.BuilderCache put(java.lang.Long key, java.lang.Long value)
key - the key that should be addedvalue - the value that should be addedpublic Long2LongOpenHashMap map()
public Long2LongOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Long2LongOpenHashMap map(long[] keys, long[] 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 Long2LongOpenHashMap map(java.lang.Long[] keys, java.lang.Long[] 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 Long2LongOpenHashMap map(Long2LongMap map)
map - that should be clonedpublic Long2LongOpenHashMap map(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
map - that should be clonedpublic Long2LongLinkedOpenHashMap linkedMap()
public Long2LongLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Long2LongLinkedOpenHashMap linkedMap(long[] keys, long[] 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 Long2LongLinkedOpenHashMap linkedMap(java.lang.Long[] keys, java.lang.Long[] 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 Long2LongLinkedOpenHashMap linkedMap(Long2LongMap map)
map - that should be clonedpublic ImmutableLong2LongOpenHashMap linkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
map - that should be clonedpublic ImmutableLong2LongOpenHashMap immutable(long[] keys, long[] 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 ImmutableLong2LongOpenHashMap immutable(java.lang.Long[] keys, java.lang.Long[] 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 ImmutableLong2LongOpenHashMap immutable(Long2LongMap map)
map - that should be clonedpublic ImmutableLong2LongOpenHashMap immutable(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
map - that should be clonedpublic Long2LongOpenCustomHashMap customMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2LongOpenCustomHashMap customMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2LongOpenCustomHashMap customMap(long[] keys, long[] values, LongStrategy 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 Long2LongOpenCustomHashMap customMap(java.lang.Long[] keys, java.lang.Long[] values, LongStrategy 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 Long2LongOpenCustomHashMap customMap(Long2LongMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2LongOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2LongLinkedOpenCustomHashMap customLinkedMap(LongStrategy strategy)
strategy - the Hash Controllerpublic Long2LongLinkedOpenCustomHashMap customLinkedMap(int size, LongStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Long2LongLinkedOpenCustomHashMap customLinkedMap(long[] keys, long[] values, LongStrategy 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 Long2LongLinkedOpenCustomHashMap customLinkedMap(java.lang.Long[] keys, java.lang.Long[] values, LongStrategy 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 Long2LongLinkedOpenCustomHashMap customLinkedMap(Long2LongMap map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2LongLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map, LongStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Long2LongArrayMap arrayMap()
public Long2LongArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Long2LongArrayMap arrayMap(long[] keys, long[] 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 Long2LongArrayMap arrayMap(java.lang.Long[] keys, java.lang.Long[] 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 Long2LongArrayMap arrayMap(Long2LongMap map)
map - that should be clonedpublic Long2LongArrayMap arrayMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map)
map - that should be clonedpublic Long2LongRBTreeMap rbTreeMap()
public Long2LongRBTreeMap rbTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2LongRBTreeMap rbTreeMap(long[] keys, long[] values, LongComparator 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 Long2LongRBTreeMap rbTreeMap(java.lang.Long[] keys, java.lang.Long[] values, LongComparator 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 Long2LongRBTreeMap rbTreeMap(Long2LongMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2LongRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2LongAVLTreeMap avlTreeMap()
public Long2LongAVLTreeMap avlTreeMap(LongComparator comp)
comp - the Sorter of the TreeMappublic Long2LongAVLTreeMap avlTreeMap(long[] keys, long[] values, LongComparator 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 Long2LongAVLTreeMap avlTreeMap(java.lang.Long[] keys, java.lang.Long[] values, LongComparator 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 Long2LongAVLTreeMap avlTreeMap(Long2LongMap map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Long2LongAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Long> map, LongComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap