public static final class Byte2IntMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Byte2IntArrayMap |
arrayMap()
Helper function to unify code
|
Byte2IntArrayMap |
arrayMap(byte[] keys,
int[] values)
Helper function to unify code
|
Byte2IntArrayMap |
arrayMap(java.lang.Byte[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Byte2IntArrayMap |
arrayMap(Byte2IntMap map)
Helper function to unify code
|
Byte2IntArrayMap |
arrayMap(int size)
Helper function to unify code
|
Byte2IntArrayMap |
arrayMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap(byte[] keys,
int[] values,
ByteComparator comp)
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap(java.lang.Byte[] keys,
java.lang.Integer[] values,
ByteComparator comp)
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap(Byte2IntMap map,
ByteComparator comp)
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap(ByteComparator comp)
Helper function to unify code
|
Byte2IntAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map,
ByteComparator comp)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(byte[] keys,
int[] values,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Byte[] keys,
java.lang.Integer[] values,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(Byte2IntMap map,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(ByteStrategy strategy)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(int size,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(byte[] keys,
int[] values,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(java.lang.Byte[] keys,
java.lang.Integer[] values,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(Byte2IntMap map,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(int size,
ByteStrategy strategy)
Helper function to unify code
|
Byte2IntOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map,
ByteStrategy strategy)
Helper function to unify code
|
ImmutableByte2IntOpenHashMap |
immutable(byte[] keys,
int[] values)
Helper function to unify code
|
ImmutableByte2IntOpenHashMap |
immutable(java.lang.Byte[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
ImmutableByte2IntOpenHashMap |
immutable(Byte2IntMap map)
Helper function to unify code
|
ImmutableByte2IntOpenHashMap |
immutable(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
Helper function to unify code
|
Byte2IntLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Byte2IntLinkedOpenHashMap |
linkedMap(byte[] keys,
int[] values)
Helper function to unify code
|
Byte2IntLinkedOpenHashMap |
linkedMap(java.lang.Byte[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Byte2IntLinkedOpenHashMap |
linkedMap(Byte2IntMap map)
Helper function to unify code
|
Byte2IntLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableByte2IntOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
Helper function to unify code
|
Byte2IntOpenHashMap |
map()
Helper function to unify code
|
Byte2IntOpenHashMap |
map(byte[] keys,
int[] values)
Helper function to unify code
|
Byte2IntOpenHashMap |
map(java.lang.Byte[] keys,
java.lang.Integer[] values)
Helper function to unify code
|
Byte2IntOpenHashMap |
map(Byte2IntMap map)
Helper function to unify code
|
Byte2IntOpenHashMap |
map(int size)
Helper function to unify code
|
Byte2IntOpenHashMap |
map(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
Helper function to unify code
|
Byte2IntMap.BuilderCache |
put(byte 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
|
Byte2IntMap.BuilderCache |
put(java.lang.Byte 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
|
Byte2IntRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Byte2IntRBTreeMap |
rbTreeMap(byte[] keys,
int[] values,
ByteComparator comp)
Helper function to unify code
|
Byte2IntRBTreeMap |
rbTreeMap(java.lang.Byte[] keys,
java.lang.Integer[] values,
ByteComparator comp)
Helper function to unify code
|
Byte2IntRBTreeMap |
rbTreeMap(Byte2IntMap map,
ByteComparator comp)
Helper function to unify code
|
Byte2IntRBTreeMap |
rbTreeMap(ByteComparator comp)
Helper function to unify code
|
Byte2IntRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map,
ByteComparator comp)
Helper function to unify code
|
Byte2IntMap.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
|
Byte2IntMap.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 Byte2IntMap.BuilderCache start()
public Byte2IntMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Byte2IntMap.BuilderCache put(byte key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Byte2IntMap.BuilderCache put(java.lang.Byte key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Byte2IntOpenHashMap map()
public Byte2IntOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Byte2IntOpenHashMap map(byte[] 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 Byte2IntOpenHashMap map(java.lang.Byte[] 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 Byte2IntOpenHashMap map(Byte2IntMap map)
map - that should be clonedpublic Byte2IntOpenHashMap map(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
map - that should be clonedpublic Byte2IntLinkedOpenHashMap linkedMap()
public Byte2IntLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Byte2IntLinkedOpenHashMap linkedMap(byte[] 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 Byte2IntLinkedOpenHashMap linkedMap(java.lang.Byte[] 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 Byte2IntLinkedOpenHashMap linkedMap(Byte2IntMap map)
map - that should be clonedpublic ImmutableByte2IntOpenHashMap linkedMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
map - that should be clonedpublic ImmutableByte2IntOpenHashMap immutable(byte[] 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 ImmutableByte2IntOpenHashMap immutable(java.lang.Byte[] 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 ImmutableByte2IntOpenHashMap immutable(Byte2IntMap map)
map - that should be clonedpublic ImmutableByte2IntOpenHashMap immutable(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
map - that should be clonedpublic Byte2IntOpenCustomHashMap customMap(ByteStrategy strategy)
strategy - the Hash Controllerpublic Byte2IntOpenCustomHashMap customMap(int size, ByteStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Byte2IntOpenCustomHashMap customMap(byte[] keys, int[] values, ByteStrategy 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 Byte2IntOpenCustomHashMap customMap(java.lang.Byte[] keys, java.lang.Integer[] values, ByteStrategy 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 Byte2IntOpenCustomHashMap customMap(Byte2IntMap map, ByteStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Byte2IntOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map, ByteStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Byte2IntLinkedOpenCustomHashMap customLinkedMap(ByteStrategy strategy)
strategy - the Hash Controllerpublic Byte2IntLinkedOpenCustomHashMap customLinkedMap(int size, ByteStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Byte2IntLinkedOpenCustomHashMap customLinkedMap(byte[] keys, int[] values, ByteStrategy 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 Byte2IntLinkedOpenCustomHashMap customLinkedMap(java.lang.Byte[] keys, java.lang.Integer[] values, ByteStrategy 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 Byte2IntLinkedOpenCustomHashMap customLinkedMap(Byte2IntMap map, ByteStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Byte2IntLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map, ByteStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Byte2IntArrayMap arrayMap()
public Byte2IntArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Byte2IntArrayMap arrayMap(byte[] 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 Byte2IntArrayMap arrayMap(java.lang.Byte[] 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 Byte2IntArrayMap arrayMap(Byte2IntMap map)
map - that should be clonedpublic Byte2IntArrayMap arrayMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map)
map - that should be clonedpublic Byte2IntRBTreeMap rbTreeMap()
public Byte2IntRBTreeMap rbTreeMap(ByteComparator comp)
comp - the Sorter of the TreeMappublic Byte2IntRBTreeMap rbTreeMap(byte[] keys, int[] values, ByteComparator 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 Byte2IntRBTreeMap rbTreeMap(java.lang.Byte[] keys, java.lang.Integer[] values, ByteComparator 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 Byte2IntRBTreeMap rbTreeMap(Byte2IntMap map, ByteComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Byte2IntRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map, ByteComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Byte2IntAVLTreeMap avlTreeMap()
public Byte2IntAVLTreeMap avlTreeMap(ByteComparator comp)
comp - the Sorter of the TreeMappublic Byte2IntAVLTreeMap avlTreeMap(byte[] keys, int[] values, ByteComparator 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 Byte2IntAVLTreeMap avlTreeMap(java.lang.Byte[] keys, java.lang.Integer[] values, ByteComparator 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 Byte2IntAVLTreeMap avlTreeMap(Byte2IntMap map, ByteComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Byte2IntAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Integer> map, ByteComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap