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