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