public static final class Short2ByteMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Short2ByteArrayMap |
arrayMap()
Helper function to unify code
|
Short2ByteArrayMap |
arrayMap(int size)
Helper function to unify code
|
Short2ByteArrayMap |
arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
Helper function to unify code
|
Short2ByteArrayMap |
arrayMap(short[] keys,
byte[] values)
Helper function to unify code
|
Short2ByteArrayMap |
arrayMap(java.lang.Short[] keys,
java.lang.Byte[] values)
Helper function to unify code
|
Short2ByteArrayMap |
arrayMap(Short2ByteMap map)
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map,
ShortComparator comp)
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap(short[] keys,
byte[] values,
ShortComparator comp)
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap(java.lang.Short[] keys,
java.lang.Byte[] values,
ShortComparator comp)
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap(Short2ByteMap map,
ShortComparator comp)
Helper function to unify code
|
Short2ByteAVLTreeMap |
avlTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(short[] keys,
byte[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Short[] keys,
java.lang.Byte[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(Short2ByteMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteLinkedOpenCustomHashMap |
customLinkedMap(ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(int size,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(short[] keys,
byte[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(java.lang.Short[] keys,
java.lang.Byte[] values,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(Short2ByteMap map,
ShortStrategy strategy)
Helper function to unify code
|
Short2ByteOpenCustomHashMap |
customMap(ShortStrategy strategy)
Helper function to unify code
|
ImmutableShort2ByteOpenHashMap |
immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
Helper function to unify code
|
ImmutableShort2ByteOpenHashMap |
immutable(short[] keys,
byte[] values)
Helper function to unify code
|
ImmutableShort2ByteOpenHashMap |
immutable(java.lang.Short[] keys,
java.lang.Byte[] values)
Helper function to unify code
|
ImmutableShort2ByteOpenHashMap |
immutable(Short2ByteMap map)
Helper function to unify code
|
Short2ByteLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Short2ByteLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableShort2ByteOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
Helper function to unify code
|
Short2ByteLinkedOpenHashMap |
linkedMap(short[] keys,
byte[] values)
Helper function to unify code
|
Short2ByteLinkedOpenHashMap |
linkedMap(java.lang.Short[] keys,
java.lang.Byte[] values)
Helper function to unify code
|
Short2ByteLinkedOpenHashMap |
linkedMap(Short2ByteMap map)
Helper function to unify code
|
Short2ByteOpenHashMap |
map()
Helper function to unify code
|
Short2ByteOpenHashMap |
map(int size)
Helper function to unify code
|
Short2ByteOpenHashMap |
map(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
Helper function to unify code
|
Short2ByteOpenHashMap |
map(short[] keys,
byte[] values)
Helper function to unify code
|
Short2ByteOpenHashMap |
map(java.lang.Short[] keys,
java.lang.Byte[] values)
Helper function to unify code
|
Short2ByteOpenHashMap |
map(Short2ByteMap map)
Helper function to unify code
|
Short2ByteMap.BuilderCache |
put(short key,
byte 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
|
Short2ByteMap.BuilderCache |
put(java.lang.Short key,
java.lang.Byte 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
|
Short2ByteRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Short2ByteRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map,
ShortComparator comp)
Helper function to unify code
|
Short2ByteRBTreeMap |
rbTreeMap(short[] keys,
byte[] values,
ShortComparator comp)
Helper function to unify code
|
Short2ByteRBTreeMap |
rbTreeMap(java.lang.Short[] keys,
java.lang.Byte[] values,
ShortComparator comp)
Helper function to unify code
|
Short2ByteRBTreeMap |
rbTreeMap(Short2ByteMap map,
ShortComparator comp)
Helper function to unify code
|
Short2ByteRBTreeMap |
rbTreeMap(ShortComparator comp)
Helper function to unify code
|
Short2ByteMap.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
|
Short2ByteMap.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 Short2ByteMap.BuilderCache start()
public Short2ByteMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Short2ByteMap.BuilderCache put(short key, byte value)
key - the key that should be addedvalue - the value that should be addedpublic Short2ByteMap.BuilderCache put(java.lang.Short key, java.lang.Byte value)
key - the key that should be addedvalue - the value that should be addedpublic Short2ByteOpenHashMap map()
public Short2ByteOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Short2ByteOpenHashMap map(short[] keys, byte[] 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 Short2ByteOpenHashMap map(java.lang.Short[] keys, java.lang.Byte[] 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 Short2ByteOpenHashMap map(Short2ByteMap map)
map - that should be clonedpublic Short2ByteOpenHashMap map(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
map - that should be clonedpublic Short2ByteLinkedOpenHashMap linkedMap()
public Short2ByteLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Short2ByteLinkedOpenHashMap linkedMap(short[] keys, byte[] 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 Short2ByteLinkedOpenHashMap linkedMap(java.lang.Short[] keys, java.lang.Byte[] 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 Short2ByteLinkedOpenHashMap linkedMap(Short2ByteMap map)
map - that should be clonedpublic ImmutableShort2ByteOpenHashMap linkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
map - that should be clonedpublic ImmutableShort2ByteOpenHashMap immutable(short[] keys, byte[] 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 ImmutableShort2ByteOpenHashMap immutable(java.lang.Short[] keys, java.lang.Byte[] 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 ImmutableShort2ByteOpenHashMap immutable(Short2ByteMap map)
map - that should be clonedpublic ImmutableShort2ByteOpenHashMap immutable(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
map - that should be clonedpublic Short2ByteOpenCustomHashMap customMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2ByteOpenCustomHashMap customMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2ByteOpenCustomHashMap customMap(short[] keys, byte[] values, ShortStrategy 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 Short2ByteOpenCustomHashMap customMap(java.lang.Short[] keys, java.lang.Byte[] values, ShortStrategy 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 Short2ByteOpenCustomHashMap customMap(Short2ByteMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2ByteOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2ByteLinkedOpenCustomHashMap customLinkedMap(ShortStrategy strategy)
strategy - the Hash Controllerpublic Short2ByteLinkedOpenCustomHashMap customLinkedMap(int size, ShortStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Short2ByteLinkedOpenCustomHashMap customLinkedMap(short[] keys, byte[] values, ShortStrategy 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 Short2ByteLinkedOpenCustomHashMap customLinkedMap(java.lang.Short[] keys, java.lang.Byte[] values, ShortStrategy 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 Short2ByteLinkedOpenCustomHashMap customLinkedMap(Short2ByteMap map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2ByteLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map, ShortStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Short2ByteArrayMap arrayMap()
public Short2ByteArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Short2ByteArrayMap arrayMap(short[] keys, byte[] 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 Short2ByteArrayMap arrayMap(java.lang.Short[] keys, java.lang.Byte[] 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 Short2ByteArrayMap arrayMap(Short2ByteMap map)
map - that should be clonedpublic Short2ByteArrayMap arrayMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map)
map - that should be clonedpublic Short2ByteRBTreeMap rbTreeMap()
public Short2ByteRBTreeMap rbTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2ByteRBTreeMap rbTreeMap(short[] keys, byte[] values, ShortComparator 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 Short2ByteRBTreeMap rbTreeMap(java.lang.Short[] keys, java.lang.Byte[] values, ShortComparator 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 Short2ByteRBTreeMap rbTreeMap(Short2ByteMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2ByteRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2ByteAVLTreeMap avlTreeMap()
public Short2ByteAVLTreeMap avlTreeMap(ShortComparator comp)
comp - the Sorter of the TreeMappublic Short2ByteAVLTreeMap avlTreeMap(short[] keys, byte[] values, ShortComparator 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 Short2ByteAVLTreeMap avlTreeMap(java.lang.Short[] keys, java.lang.Byte[] values, ShortComparator 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 Short2ByteAVLTreeMap avlTreeMap(Short2ByteMap map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Short2ByteAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Byte> map, ShortComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap