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