public static final class Object2ObjectMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T,V> Object2ObjectArrayMap<T,V> |
arrayMap()
Helper function to unify code
|
<T,V> Object2ObjectArrayMap<T,V> |
arrayMap(int size)
Helper function to unify code
|
<T,V> Object2ObjectArrayMap<T,V> |
arrayMap(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T,V> Object2ObjectArrayMap<T,V> |
arrayMap(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T,V> Object2ObjectArrayMap<T,V> |
arrayMap(T[] keys,
V[] values)
Helper function to unify code
|
<T,V> Object2ObjectAVLTreeMap<T,V> |
avlTreeMap()
Helper function to unify code
|
<T,V> Object2ObjectAVLTreeMap<T,V> |
avlTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectAVLTreeMap<T,V> |
avlTreeMap(java.util.Map<? extends T,? extends V> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectAVLTreeMap<T,V> |
avlTreeMap(Object2ObjectMap<T,V> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectAVLTreeMap<T,V> |
avlTreeMap(T[] keys,
V[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(java.util.Map<? extends T,? extends V> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(Object2ObjectMap<T,V> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(T[] keys,
V[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectOpenCustomHashMap<T,V> |
customMap(int size,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectOpenCustomHashMap<T,V> |
customMap(java.util.Map<? extends T,? extends V> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectOpenCustomHashMap<T,V> |
customMap(Object2ObjectMap<T,V> map,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectOpenCustomHashMap<T,V> |
customMap(ObjectStrategy<T> strategy)
Helper function to unify code
|
<T,V> Object2ObjectOpenCustomHashMap<T,V> |
customMap(T[] keys,
V[] values,
ObjectStrategy<T> strategy)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
enumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
enumMap(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
enumMap(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
enumMap(T[] keys,
V[] values)
Helper function to unify code
|
<T,V> ImmutableObject2ObjectOpenHashMap<T,V> |
immutable(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T,V> ImmutableObject2ObjectOpenHashMap<T,V> |
immutable(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T,V> ImmutableObject2ObjectOpenHashMap<T,V> |
immutable(T[] keys,
V[] values)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
linkedEnumMap(java.lang.Class<T> keyType)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
linkedEnumMap(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
linkedEnumMap(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T extends java.lang.Enum<T>,V> |
linkedEnumMap(T[] keys,
V[] values)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenHashMap<T,V> |
linkedMap()
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenHashMap<T,V> |
linkedMap(int size)
Helper function to unify code
|
<T,V> ImmutableObject2ObjectOpenHashMap<T,V> |
linkedMap(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenHashMap<T,V> |
linkedMap(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T,V> Object2ObjectLinkedOpenHashMap<T,V> |
linkedMap(T[] keys,
V[] values)
Helper function to unify code
|
<T,V> Object2ObjectOpenHashMap<T,V> |
map()
Helper function to unify code
|
<T,V> Object2ObjectOpenHashMap<T,V> |
map(int size)
Helper function to unify code
|
<T,V> Object2ObjectOpenHashMap<T,V> |
map(java.util.Map<? extends T,? extends V> map)
Helper function to unify code
|
<T,V> Object2ObjectOpenHashMap<T,V> |
map(Object2ObjectMap<T,V> map)
Helper function to unify code
|
<T,V> Object2ObjectOpenHashMap<T,V> |
map(T[] keys,
V[] values)
Helper function to unify code
|
<T,V> Object2ObjectMap.BuilderCache<T,V> |
put(T key,
V 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,V> Object2ObjectRBTreeMap<T,V> |
rbTreeMap()
Helper function to unify code
|
<T,V> Object2ObjectRBTreeMap<T,V> |
rbTreeMap(java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectRBTreeMap<T,V> |
rbTreeMap(java.util.Map<? extends T,? extends V> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectRBTreeMap<T,V> |
rbTreeMap(Object2ObjectMap<T,V> map,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectRBTreeMap<T,V> |
rbTreeMap(T[] keys,
V[] values,
java.util.Comparator<T> comp)
Helper function to unify code
|
<T,V> Object2ObjectMap.BuilderCache<T,V> |
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,V> Object2ObjectMap.BuilderCache<T,V> |
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,V> Object2ObjectMap.BuilderCache<T,V> start()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectMap.BuilderCache<T,V> start(int size)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <T,V> Object2ObjectMap.BuilderCache<T,V> put(T key, V value)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <T,V> Object2ObjectOpenHashMap<T,V> map()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectOpenHashMap<T,V> map(int size)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T,V> Object2ObjectOpenHashMap<T,V> map(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectOpenHashMap<T,V> map(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> Object2ObjectOpenHashMap<T,V> map(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> Object2ObjectLinkedOpenHashMap<T,V> linkedMap()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectLinkedOpenHashMap<T,V> linkedMap(int size)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T,V> Object2ObjectLinkedOpenHashMap<T,V> linkedMap(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectLinkedOpenHashMap<T,V> linkedMap(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> ImmutableObject2ObjectOpenHashMap<T,V> linkedMap(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> ImmutableObject2ObjectOpenHashMap<T,V> immutable(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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,V> ImmutableObject2ObjectOpenHashMap<T,V> immutable(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> ImmutableObject2ObjectOpenHashMap<T,V> immutable(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T extends java.lang.Enum<T>,V> Enum2ObjectMap<T,V> enumMap(java.lang.Class<T> keyType)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>,V> Enum2ObjectMap<T,V> enumMap(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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>,V> Enum2ObjectMap<T,V> enumMap(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type 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>,V> Enum2ObjectMap<T,V> enumMap(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type 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>,V> LinkedEnum2ObjectMap<T,V> linkedEnumMap(java.lang.Class<T> keyType)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this CollectionkeyType - the EnumClass that should be usedpublic <T extends java.lang.Enum<T>,V> LinkedEnum2ObjectMap<T,V> linkedEnumMap(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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>,V> LinkedEnum2ObjectMap<T,V> linkedEnumMap(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type 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>,V> LinkedEnum2ObjectMap<T,V> linkedEnumMap(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedjava.lang.IllegalArgumentException - if the map is Empty and is not a EnumMappublic <T,V> Object2ObjectOpenCustomHashMap<T,V> customMap(ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T,V> Object2ObjectOpenCustomHashMap<T,V> customMap(int size, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T,V> Object2ObjectOpenCustomHashMap<T,V> customMap(T[] keys, V[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectOpenCustomHashMap<T,V> customMap(Object2ObjectMap<T,V> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T,V> Object2ObjectOpenCustomHashMap<T,V> customMap(java.util.Map<? extends T,? extends V> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(int size, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(T[] keys, V[] values, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(Object2ObjectMap<T,V> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T,V> Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(java.util.Map<? extends T,? extends V> map, ObjectStrategy<T> strategy)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <T,V> Object2ObjectArrayMap<T,V> arrayMap()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectArrayMap<T,V> arrayMap(int size)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <T,V> Object2ObjectArrayMap<T,V> arrayMap(T[] keys, V[] values)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectArrayMap<T,V> arrayMap(Object2ObjectMap<T,V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> Object2ObjectArrayMap<T,V> arrayMap(java.util.Map<? extends T,? extends V> map)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedpublic <T,V> Object2ObjectRBTreeMap<T,V> rbTreeMap()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectRBTreeMap<T,V> rbTreeMap(java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T,V> Object2ObjectRBTreeMap<T,V> rbTreeMap(T[] keys, V[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectRBTreeMap<T,V> rbTreeMap(Object2ObjectMap<T,V> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T,V> Object2ObjectRBTreeMap<T,V> rbTreeMap(java.util.Map<? extends T,? extends V> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T,V> Object2ObjectAVLTreeMap<T,V> avlTreeMap()
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic <T,V> Object2ObjectAVLTreeMap<T,V> avlTreeMap(java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <T,V> Object2ObjectAVLTreeMap<T,V> avlTreeMap(T[] keys, V[] values, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type 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,V> Object2ObjectAVLTreeMap<T,V> avlTreeMap(Object2ObjectMap<T,V> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <T,V> Object2ObjectAVLTreeMap<T,V> avlTreeMap(java.util.Map<? extends T,? extends V> map, java.util.Comparator<T> comp)
T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap