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