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