public static final class Int2LongMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Int2LongArrayMap |
arrayMap()
Helper function to unify code
|
Int2LongArrayMap |
arrayMap(int size)
Helper function to unify code
|
Int2LongArrayMap |
arrayMap(int[] keys,
long[] values)
Helper function to unify code
|
Int2LongArrayMap |
arrayMap(Int2LongMap map)
Helper function to unify code
|
Int2LongArrayMap |
arrayMap(java.lang.Integer[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Int2LongArrayMap |
arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap(int[] keys,
long[] values,
IntComparator comp)
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap(Int2LongMap map,
IntComparator comp)
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap(IntComparator comp)
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap(java.lang.Integer[] keys,
java.lang.Long[] values,
IntComparator comp)
Helper function to unify code
|
Int2LongAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map,
IntComparator comp)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(int[] keys,
long[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(Int2LongMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Integer[] keys,
java.lang.Long[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(IntStrategy strategy)
Helper function to unify code
|
Int2LongLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map,
IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(int[] keys,
long[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(Int2LongMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(java.lang.Integer[] keys,
java.lang.Long[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(IntStrategy strategy)
Helper function to unify code
|
Int2LongOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map,
IntStrategy strategy)
Helper function to unify code
|
ImmutableInt2LongOpenHashMap |
immutable(int[] keys,
long[] values)
Helper function to unify code
|
ImmutableInt2LongOpenHashMap |
immutable(Int2LongMap map)
Helper function to unify code
|
ImmutableInt2LongOpenHashMap |
immutable(java.lang.Integer[] keys,
java.lang.Long[] values)
Helper function to unify code
|
ImmutableInt2LongOpenHashMap |
immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
Helper function to unify code
|
Int2LongLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Int2LongLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Int2LongLinkedOpenHashMap |
linkedMap(int[] keys,
long[] values)
Helper function to unify code
|
Int2LongLinkedOpenHashMap |
linkedMap(Int2LongMap map)
Helper function to unify code
|
Int2LongLinkedOpenHashMap |
linkedMap(java.lang.Integer[] keys,
java.lang.Long[] values)
Helper function to unify code
|
ImmutableInt2LongOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
Helper function to unify code
|
Int2LongOpenHashMap |
map()
Helper function to unify code
|
Int2LongOpenHashMap |
map(int size)
Helper function to unify code
|
Int2LongOpenHashMap |
map(int[] keys,
long[] values)
Helper function to unify code
|
Int2LongOpenHashMap |
map(Int2LongMap map)
Helper function to unify code
|
Int2LongOpenHashMap |
map(java.lang.Integer[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Int2LongOpenHashMap |
map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
Helper function to unify code
|
Int2LongMap.BuilderCache |
put(java.lang.Integer 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
|
Int2LongMap.BuilderCache |
put(int 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
|
Int2LongRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Int2LongRBTreeMap |
rbTreeMap(int[] keys,
long[] values,
IntComparator comp)
Helper function to unify code
|
Int2LongRBTreeMap |
rbTreeMap(Int2LongMap map,
IntComparator comp)
Helper function to unify code
|
Int2LongRBTreeMap |
rbTreeMap(IntComparator comp)
Helper function to unify code
|
Int2LongRBTreeMap |
rbTreeMap(java.lang.Integer[] keys,
java.lang.Long[] values,
IntComparator comp)
Helper function to unify code
|
Int2LongRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map,
IntComparator comp)
Helper function to unify code
|
Int2LongMap.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
|
Int2LongMap.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 Int2LongMap.BuilderCache start()
public Int2LongMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Int2LongMap.BuilderCache put(int key, long value)
key - the key that should be addedvalue - the value that should be addedpublic Int2LongMap.BuilderCache put(java.lang.Integer key, java.lang.Long value)
key - the key that should be addedvalue - the value that should be addedpublic Int2LongOpenHashMap map()
public Int2LongOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Int2LongOpenHashMap map(int[] 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 Int2LongOpenHashMap map(java.lang.Integer[] 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 Int2LongOpenHashMap map(Int2LongMap map)
map - that should be clonedpublic Int2LongOpenHashMap map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
map - that should be clonedpublic Int2LongLinkedOpenHashMap linkedMap()
public Int2LongLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Int2LongLinkedOpenHashMap linkedMap(int[] 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 Int2LongLinkedOpenHashMap linkedMap(java.lang.Integer[] 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 Int2LongLinkedOpenHashMap linkedMap(Int2LongMap map)
map - that should be clonedpublic ImmutableInt2LongOpenHashMap linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
map - that should be clonedpublic ImmutableInt2LongOpenHashMap immutable(int[] 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 ImmutableInt2LongOpenHashMap immutable(java.lang.Integer[] 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 ImmutableInt2LongOpenHashMap immutable(Int2LongMap map)
map - that should be clonedpublic ImmutableInt2LongOpenHashMap immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
map - that should be clonedpublic Int2LongOpenCustomHashMap customMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2LongOpenCustomHashMap customMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2LongOpenCustomHashMap customMap(int[] keys, long[] values, IntStrategy 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 Int2LongOpenCustomHashMap customMap(java.lang.Integer[] keys, java.lang.Long[] values, IntStrategy 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 Int2LongOpenCustomHashMap customMap(Int2LongMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2LongOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2LongLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2LongLinkedOpenCustomHashMap customLinkedMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2LongLinkedOpenCustomHashMap customLinkedMap(int[] keys, long[] values, IntStrategy 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 Int2LongLinkedOpenCustomHashMap customLinkedMap(java.lang.Integer[] keys, java.lang.Long[] values, IntStrategy 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 Int2LongLinkedOpenCustomHashMap customLinkedMap(Int2LongMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2LongLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2LongArrayMap arrayMap()
public Int2LongArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Int2LongArrayMap arrayMap(int[] 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 Int2LongArrayMap arrayMap(java.lang.Integer[] 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 Int2LongArrayMap arrayMap(Int2LongMap map)
map - that should be clonedpublic Int2LongArrayMap arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map)
map - that should be clonedpublic Int2LongRBTreeMap rbTreeMap()
public Int2LongRBTreeMap rbTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2LongRBTreeMap rbTreeMap(int[] keys, long[] values, IntComparator 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 Int2LongRBTreeMap rbTreeMap(java.lang.Integer[] keys, java.lang.Long[] values, IntComparator 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 Int2LongRBTreeMap rbTreeMap(Int2LongMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2LongRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2LongAVLTreeMap avlTreeMap()
public Int2LongAVLTreeMap avlTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2LongAVLTreeMap avlTreeMap(int[] keys, long[] values, IntComparator 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 Int2LongAVLTreeMap avlTreeMap(java.lang.Integer[] keys, java.lang.Long[] values, IntComparator 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 Int2LongAVLTreeMap avlTreeMap(Int2LongMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2LongAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Long> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap