public static final class Char2LongMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Char2LongArrayMap |
arrayMap()
Helper function to unify code
|
Char2LongArrayMap |
arrayMap(char[] keys,
long[] values)
Helper function to unify code
|
Char2LongArrayMap |
arrayMap(Char2LongMap map)
Helper function to unify code
|
Char2LongArrayMap |
arrayMap(java.lang.Character[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Char2LongArrayMap |
arrayMap(int size)
Helper function to unify code
|
Char2LongArrayMap |
arrayMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap(char[] keys,
long[] values,
CharComparator comp)
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap(Char2LongMap map,
CharComparator comp)
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap(java.lang.Character[] keys,
java.lang.Long[] values,
CharComparator comp)
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap(CharComparator comp)
Helper function to unify code
|
Char2LongAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map,
CharComparator comp)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(char[] keys,
long[] values,
CharStrategy strategy)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(Char2LongMap map,
CharStrategy strategy)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Character[] keys,
java.lang.Long[] values,
CharStrategy strategy)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(CharStrategy strategy)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(int size,
CharStrategy strategy)
Helper function to unify code
|
Char2LongLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map,
CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(char[] keys,
long[] values,
CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(Char2LongMap map,
CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(java.lang.Character[] keys,
java.lang.Long[] values,
CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(int size,
CharStrategy strategy)
Helper function to unify code
|
Char2LongOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map,
CharStrategy strategy)
Helper function to unify code
|
ImmutableChar2LongOpenHashMap |
immutable(char[] keys,
long[] values)
Helper function to unify code
|
ImmutableChar2LongOpenHashMap |
immutable(Char2LongMap map)
Helper function to unify code
|
ImmutableChar2LongOpenHashMap |
immutable(java.lang.Character[] keys,
java.lang.Long[] values)
Helper function to unify code
|
ImmutableChar2LongOpenHashMap |
immutable(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
Helper function to unify code
|
Char2LongLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Char2LongLinkedOpenHashMap |
linkedMap(char[] keys,
long[] values)
Helper function to unify code
|
Char2LongLinkedOpenHashMap |
linkedMap(Char2LongMap map)
Helper function to unify code
|
Char2LongLinkedOpenHashMap |
linkedMap(java.lang.Character[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Char2LongLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
ImmutableChar2LongOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
Helper function to unify code
|
Char2LongOpenHashMap |
map()
Helper function to unify code
|
Char2LongOpenHashMap |
map(char[] keys,
long[] values)
Helper function to unify code
|
Char2LongOpenHashMap |
map(Char2LongMap map)
Helper function to unify code
|
Char2LongOpenHashMap |
map(java.lang.Character[] keys,
java.lang.Long[] values)
Helper function to unify code
|
Char2LongOpenHashMap |
map(int size)
Helper function to unify code
|
Char2LongOpenHashMap |
map(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
Helper function to unify code
|
Char2LongMap.BuilderCache |
put(java.lang.Character 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
|
Char2LongMap.BuilderCache |
put(char 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
|
Char2LongRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Char2LongRBTreeMap |
rbTreeMap(char[] keys,
long[] values,
CharComparator comp)
Helper function to unify code
|
Char2LongRBTreeMap |
rbTreeMap(Char2LongMap map,
CharComparator comp)
Helper function to unify code
|
Char2LongRBTreeMap |
rbTreeMap(java.lang.Character[] keys,
java.lang.Long[] values,
CharComparator comp)
Helper function to unify code
|
Char2LongRBTreeMap |
rbTreeMap(CharComparator comp)
Helper function to unify code
|
Char2LongRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map,
CharComparator comp)
Helper function to unify code
|
Char2LongMap.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
|
Char2LongMap.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 Char2LongMap.BuilderCache start()
public Char2LongMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Char2LongMap.BuilderCache put(char key, long value)
key - the key that should be addedvalue - the value that should be addedpublic Char2LongMap.BuilderCache put(java.lang.Character key, java.lang.Long value)
key - the key that should be addedvalue - the value that should be addedpublic Char2LongOpenHashMap map()
public Char2LongOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Char2LongOpenHashMap map(char[] 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 Char2LongOpenHashMap map(java.lang.Character[] 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 Char2LongOpenHashMap map(Char2LongMap map)
map - that should be clonedpublic Char2LongOpenHashMap map(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
map - that should be clonedpublic Char2LongLinkedOpenHashMap linkedMap()
public Char2LongLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Char2LongLinkedOpenHashMap linkedMap(char[] 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 Char2LongLinkedOpenHashMap linkedMap(java.lang.Character[] 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 Char2LongLinkedOpenHashMap linkedMap(Char2LongMap map)
map - that should be clonedpublic ImmutableChar2LongOpenHashMap linkedMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
map - that should be clonedpublic ImmutableChar2LongOpenHashMap immutable(char[] 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 ImmutableChar2LongOpenHashMap immutable(java.lang.Character[] 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 ImmutableChar2LongOpenHashMap immutable(Char2LongMap map)
map - that should be clonedpublic ImmutableChar2LongOpenHashMap immutable(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
map - that should be clonedpublic Char2LongOpenCustomHashMap customMap(CharStrategy strategy)
strategy - the Hash Controllerpublic Char2LongOpenCustomHashMap customMap(int size, CharStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Char2LongOpenCustomHashMap customMap(char[] keys, long[] values, CharStrategy 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 Char2LongOpenCustomHashMap customMap(java.lang.Character[] keys, java.lang.Long[] values, CharStrategy 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 Char2LongOpenCustomHashMap customMap(Char2LongMap map, CharStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Char2LongOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map, CharStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Char2LongLinkedOpenCustomHashMap customLinkedMap(CharStrategy strategy)
strategy - the Hash Controllerpublic Char2LongLinkedOpenCustomHashMap customLinkedMap(int size, CharStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Char2LongLinkedOpenCustomHashMap customLinkedMap(char[] keys, long[] values, CharStrategy 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 Char2LongLinkedOpenCustomHashMap customLinkedMap(java.lang.Character[] keys, java.lang.Long[] values, CharStrategy 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 Char2LongLinkedOpenCustomHashMap customLinkedMap(Char2LongMap map, CharStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Char2LongLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map, CharStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Char2LongArrayMap arrayMap()
public Char2LongArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Char2LongArrayMap arrayMap(char[] 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 Char2LongArrayMap arrayMap(java.lang.Character[] 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 Char2LongArrayMap arrayMap(Char2LongMap map)
map - that should be clonedpublic Char2LongArrayMap arrayMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map)
map - that should be clonedpublic Char2LongRBTreeMap rbTreeMap()
public Char2LongRBTreeMap rbTreeMap(CharComparator comp)
comp - the Sorter of the TreeMappublic Char2LongRBTreeMap rbTreeMap(char[] keys, long[] values, CharComparator 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 Char2LongRBTreeMap rbTreeMap(java.lang.Character[] keys, java.lang.Long[] values, CharComparator 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 Char2LongRBTreeMap rbTreeMap(Char2LongMap map, CharComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Char2LongRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map, CharComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Char2LongAVLTreeMap avlTreeMap()
public Char2LongAVLTreeMap avlTreeMap(CharComparator comp)
comp - the Sorter of the TreeMappublic Char2LongAVLTreeMap avlTreeMap(char[] keys, long[] values, CharComparator 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 Char2LongAVLTreeMap avlTreeMap(java.lang.Character[] keys, java.lang.Long[] values, CharComparator 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 Char2LongAVLTreeMap avlTreeMap(Char2LongMap map, CharComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Char2LongAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Long> map, CharComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap