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