public static final class Object2CharMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T> Object2CharArrayMap<T> |
arrayMap()
Helper function to unify code
|
<T> Object2CharArrayMap<T> |
arrayMap(int size)
Helper function to unify code
|
<T> Object2CharArrayMap<T> |
arrayMap(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T> Object2CharArrayMap<T> |
arrayMap(Object2CharMap<T> map)
Helper function to unify code
|
<T> Object2CharArrayMap<T> |
arrayMap(T[] keys,
char[] values)
Helper function to unify code
|
<T> Object2CharArrayMap<T> |
arrayMap(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap()
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap(java.util.Map<? extends T,? extends java.lang.Character> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap(Object2CharMap<T> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap(T[] keys,
char[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharAVLTreeMap<T> |
avlTreeMap(T[] keys,
java.lang.Character[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(java.util.Map<? extends T,? extends java.lang.Character> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(Object2CharMap<T> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(T[] keys,
char[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharLinkedOpenCustomHashMap<T> |
customLinkedMap(T[] keys,
java.lang.Character[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(java.util.Map<? extends T,? extends java.lang.Character> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(Object2CharMap<T> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(T[] keys,
char[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T> Object2CharOpenCustomHashMap<T> |
customMap(T[] keys,
java.lang.Character[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(Object2CharMap<T> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(T[] keys,
char[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
enumMap(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T> ImmutableObject2CharOpenHashMap<T> |
immutable(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T> ImmutableObject2CharOpenHashMap<T> |
immutable(Object2CharMap<T> map)
Helper function to unify code
|
<T> ImmutableObject2CharOpenHashMap<T> |
immutable(T[] keys,
char[] values)
Helper function to unify code
|
<T> ImmutableObject2CharOpenHashMap<T> |
immutable(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(Object2CharMap<T> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(T[] keys,
char[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>> |
linkedEnumMap(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T> Object2CharLinkedOpenHashMap<T> |
linkedMap()
Helper function to unify code
|
<T> Object2CharLinkedOpenHashMap<T> |
linkedMap(int size)
Helper function to unify code
|
<T> ImmutableObject2CharOpenHashMap<T> |
linkedMap(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T> Object2CharLinkedOpenHashMap<T> |
linkedMap(Object2CharMap<T> map)
Helper function to unify code
|
<T> Object2CharLinkedOpenHashMap<T> |
linkedMap(T[] keys,
char[] values)
Helper function to unify code
|
<T> Object2CharLinkedOpenHashMap<T> |
linkedMap(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map()
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map(int size)
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map(java.util.Map<? extends T,? extends java.lang.Character> map)
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map(Object2CharMap<T> map)
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map(T[] keys,
char[] values)
Helper function to unify code
|
<T> Object2CharOpenHashMap<T> |
map(T[] keys,
java.lang.Character[] values)
Helper function to unify code
|
<T> Object2CharMap.BuilderCache<T> |
put(T key,
char 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
|
<T> Object2CharMap.BuilderCache<T> |
put(T key,
java.lang.Character 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
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap()
Helper function to unify code
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap(java.util.Map<? extends T,? extends java.lang.Character> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap(Object2CharMap<T> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap(T[] keys,
char[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharRBTreeMap<T> |
rbTreeMap(T[] keys,
java.lang.Character[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T> Object2CharMap.BuilderCache<T> |
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
|
<T> Object2CharMap.BuilderCache<T> |
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 <T> Object2CharMap.BuilderCache<T> start()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharMap.BuilderCache<T> start(int size)
T - the keyType of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <T> Object2CharMap.BuilderCache<T> put(T key, char value)
T - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <T> Object2CharMap.BuilderCache<T> put(T key, java.lang.Character value)
T - the keyType of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <T> Object2CharOpenHashMap<T> map()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharOpenHashMap<T> map(int size)
T - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2CharOpenHashMap<T> map(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharOpenHashMap<T> map(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharOpenHashMap<T> map(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2CharOpenHashMap<T> map(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2CharLinkedOpenHashMap<T> linkedMap()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharLinkedOpenHashMap<T> linkedMap(int size)
T - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2CharLinkedOpenHashMap<T> linkedMap(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharLinkedOpenHashMap<T> linkedMap(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharLinkedOpenHashMap<T> linkedMap(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2CharOpenHashMap<T> linkedMap(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2CharOpenHashMap<T> immutable(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> ImmutableObject2CharOpenHashMap<T> immutable(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> ImmutableObject2CharOpenHashMap<T> immutable(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> ImmutableObject2CharOpenHashMap<T> immutable(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T extends java.lang.Enum<T>> Enum2CharMap<T> enumMap(java.lang.Class<T> keyType)
T - the keyType of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>> Enum2CharMap<T> enumMap(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> Enum2CharMap<T> enumMap(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> Enum2CharMap<T> enumMap(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> Enum2CharMap<T> enumMap(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> LinkedEnum2CharMap<T> linkedEnumMap(java.lang.Class<T> keyType)
T - the keyType of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>> LinkedEnum2CharMap<T> linkedEnumMap(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> LinkedEnum2CharMap<T> linkedEnumMap(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthjava.lang.IllegalArgumentException - if the keys are in length 0public <T extends java.lang.Enum<T>> LinkedEnum2CharMap<T> linkedEnumMap(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T extends java.lang.Enum<T>> LinkedEnum2CharMap<T> linkedEnumMap(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T> Object2CharOpenCustomHashMap<T> customMap(ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T> Object2CharOpenCustomHashMap<T> customMap(int size, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T> Object2CharOpenCustomHashMap<T> customMap(T[] keys, char[] values, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharOpenCustomHashMap<T> customMap(T[] keys, java.lang.Character[] values, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharOpenCustomHashMap<T> customMap(Object2CharMap<T> map, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2CharOpenCustomHashMap<T> customMap(java.util.Map<? extends T,? extends java.lang.Character> map, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(int size, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, char[] values, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, java.lang.Character[] values, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(Object2CharMap<T> map, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2CharLinkedOpenCustomHashMap<T> customLinkedMap(java.util.Map<? extends T,? extends java.lang.Character> map, ObjectStrategy<T> strategy)
T - the keyType of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T> Object2CharArrayMap<T> arrayMap()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharArrayMap<T> arrayMap(int size)
T - the keyType of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T> Object2CharArrayMap<T> arrayMap(T[] keys, char[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharArrayMap<T> arrayMap(T[] keys, java.lang.Character[] values)
T - the keyType of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <T> Object2CharArrayMap<T> arrayMap(Object2CharMap<T> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2CharArrayMap<T> arrayMap(java.util.Map<? extends T,? extends java.lang.Character> map)
T - the keyType of elements maintained by this Collectionmap - that should be clonedpublic <T> Object2CharRBTreeMap<T> rbTreeMap()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharRBTreeMap<T> rbTreeMap(java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T> Object2CharRBTreeMap<T> rbTreeMap(T[] keys, char[] values, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharRBTreeMap<T> rbTreeMap(T[] keys, java.lang.Character[] values, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharRBTreeMap<T> rbTreeMap(Object2CharMap<T> map, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2CharRBTreeMap<T> rbTreeMap(java.util.Map<? extends T,? extends java.lang.Character> map, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2CharAVLTreeMap<T> avlTreeMap()
T - the keyType of elements maintained by this Collectionpublic <T> Object2CharAVLTreeMap<T> avlTreeMap(java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T> Object2CharAVLTreeMap<T> avlTreeMap(T[] keys, char[] values, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharAVLTreeMap<T> avlTreeMap(T[] keys, java.lang.Character[] values, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionkeys - 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 <T> Object2CharAVLTreeMap<T> avlTreeMap(Object2CharMap<T> map, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T> Object2CharAVLTreeMap<T> avlTreeMap(java.util.Map<? extends T,? extends java.lang.Character> map, java.util.Comparator<T> comp)
T - the keyType of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap