Modul speiger.src.collections
Klasse Char2ObjectMap.MapBuilder
java.lang.Object
speiger.src.collections.chars.maps.interfaces.Char2ObjectMap.MapBuilder
- Umschließende Schnittstelle:
Char2ObjectMap<V>
Helper class that reduces the method spam of the Map Class.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<V> Char2ObjectArrayMap<V>arrayMap()Helper function to unify code<V> Char2ObjectArrayMap<V>arrayMap(char[] keys, V[] values) Helper function to unify code<V> Char2ObjectArrayMap<V>arrayMap(int size) Helper function to unify code<V> Char2ObjectArrayMap<V>Helper function to unify code<V> Char2ObjectArrayMap<V>Helper function to unify code<V> Char2ObjectArrayMap<V>arrayMap(Char2ObjectMap<V> map) Helper function to unify code<V> Char2ObjectAVLTreeMap<V>Helper function to unify code<V> Char2ObjectAVLTreeMap<V>avlTreeMap(char[] keys, V[] values, CharComparator comp) Helper function to unify code<V> Char2ObjectAVLTreeMap<V>avlTreeMap(Character[] keys, V[] values, CharComparator comp) Helper function to unify code<V> Char2ObjectAVLTreeMap<V>avlTreeMap(Map<? extends Character, ? extends V> map, CharComparator comp) Helper function to unify code<V> Char2ObjectAVLTreeMap<V>avlTreeMap(CharComparator comp) Helper function to unify code<V> Char2ObjectAVLTreeMap<V>avlTreeMap(Char2ObjectMap<V> map, CharComparator comp) Helper function to unify codecustomLinkedMap(char[] keys, V[] values, CharStrategy strategy) Helper function to unify codecustomLinkedMap(int size, CharStrategy strategy) Helper function to unify codecustomLinkedMap(Character[] keys, V[] values, CharStrategy strategy) Helper function to unify codecustomLinkedMap(Map<? extends Character, ? extends V> map, CharStrategy strategy) Helper function to unify codecustomLinkedMap(Char2ObjectMap<V> map, CharStrategy strategy) Helper function to unify codecustomLinkedMap(CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(char[] keys, V[] values, CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(int size, CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(Character[] keys, V[] values, CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(Map<? extends Character, ? extends V> map, CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(Char2ObjectMap<V> map, CharStrategy strategy) Helper function to unify code<V> Char2ObjectOpenCustomHashMap<V>customMap(CharStrategy strategy) Helper function to unify codeimmutable(char[] keys, V[] values) Helper function to unify codeHelper function to unify codeHelper function to unify codeimmutable(Char2ObjectMap<V> map) Helper function to unify code<V> Char2ObjectLinkedOpenHashMap<V>Helper function to unify code<V> Char2ObjectLinkedOpenHashMap<V>linkedMap(char[] keys, V[] values) Helper function to unify code<V> Char2ObjectLinkedOpenHashMap<V>linkedMap(int size) Helper function to unify code<V> Char2ObjectLinkedOpenHashMap<V>Helper function to unify codeHelper function to unify code<V> Char2ObjectLinkedOpenHashMap<V>linkedMap(Char2ObjectMap<V> map) Helper function to unify code<V> Char2ObjectOpenHashMap<V>map()Helper function to unify code<V> Char2ObjectOpenHashMap<V>map(char[] keys, V[] values) Helper function to unify code<V> Char2ObjectOpenHashMap<V>map(int size) Helper function to unify code<V> Char2ObjectOpenHashMap<V>Helper function to unify code<V> Char2ObjectOpenHashMap<V>Helper function to unify code<V> Char2ObjectOpenHashMap<V>map(Char2ObjectMap<V> map) Helper function to unify code<V> Char2ObjectMap.BuilderCache<V>put(char 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<V> Char2ObjectMap.BuilderCache<V>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<V> Char2ObjectRBTreeMap<V>Helper function to unify code<V> Char2ObjectRBTreeMap<V>rbTreeMap(char[] keys, V[] values, CharComparator comp) Helper function to unify code<V> Char2ObjectRBTreeMap<V>rbTreeMap(Character[] keys, V[] values, CharComparator comp) Helper function to unify code<V> Char2ObjectRBTreeMap<V>rbTreeMap(Map<? extends Character, ? extends V> map, CharComparator comp) Helper function to unify code<V> Char2ObjectRBTreeMap<V>rbTreeMap(CharComparator comp) Helper function to unify code<V> Char2ObjectRBTreeMap<V>rbTreeMap(Char2ObjectMap<V> map, CharComparator comp) Helper function to unify code<V> Char2ObjectMap.BuilderCache<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<V> Char2ObjectMap.BuilderCache<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
-
Konstruktordetails
-
MapBuilder
public MapBuilder()
-
-
Methodendetails
-
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- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a MapBuilder
-
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- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the expected minimum size of Elements in the Map, default is 16- Gibt zurück:
- a MapBuilder
-
put
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- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
key- the key that should be addedvalue- the value that should be added- Gibt zurück:
- a MapBuilder with the key and value stored in it.
-
put
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- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
key- the key that should be addedvalue- the value that should be added- Gibt zurück:
- a MapBuilder with the key and value stored in it.
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a OpenHashMap
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a OpenHashMap with a mimimum capacity
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a OpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a OpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a OpenHashMap thats copies the contents of the provided map
-
map
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a OpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a LinkedOpenHashMap
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a LinkedOpenHashMap with a mimimum capacity
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a LinkedOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a LinkedOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a LinkedOpenHashMap thats copies the contents of the provided map
-
linkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a LinkedOpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
immutable
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a ImmutableOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
immutable
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a ImmutableOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
immutable
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a ImmutableOpenHashMap thats copies the contents of the provided map
-
immutable
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a ImmutableOpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
customMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
strategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap
-
customMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the minimum capacity of the Mapstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap with a mimimum capacity
-
customMap
public <V> Char2ObjectOpenCustomHashMap<V> customMap(char[] keys, V[] values, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
customMap
public <V> Char2ObjectOpenCustomHashMap<V> customMap(Character[] keys, V[] values, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
customMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap thats copies the contents of the provided map
-
customMap
public <V> Char2ObjectOpenCustomHashMap<V> customMap(Map<? extends Character, ? extends V> map, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
customLinkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
strategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap
-
customLinkedMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the minimum capacity of the Mapstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap with a mimimum capacity
-
customLinkedMap
public <V> Char2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(char[] keys, V[] values, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
customLinkedMap
public <V> Char2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Character[] keys, V[] values, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
customLinkedMap
public <V> Char2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Char2ObjectMap<V> map, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap thats copies the contents of the provided map
-
customLinkedMap
public <V> Char2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Map<? extends Character, ? extends V> map, CharStrategy strategy) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a OpenHashMap
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a OpenHashMap with a mimimum capacity
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a OpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be inserted- Gibt zurück:
- a OpenHashMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a OpenHashMap thats copies the contents of the provided map
-
arrayMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be cloned- Gibt zurück:
- a OpenHashMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
rbTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a RBTreeMap
-
rbTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
comp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap
-
rbTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedcomp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
rbTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedcomp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
rbTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedcomp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap thats copies the contents of the provided map
-
rbTreeMap
public <V> Char2ObjectRBTreeMap<V> rbTreeMap(Map<? extends Character, ? extends V> map, CharComparator comp) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedcomp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-
avlTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Gibt zurück:
- a AVLTreeMap
-
avlTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
comp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap
-
avlTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedcomp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length
-
avlTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
keys- the keys that should be insertedvalues- the values that should be insertedcomp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap thats contains the injected values
- Löst aus:
IllegalStateException- if the keys and values do not match in length- Note:
- the keys and values will be unboxed
-
avlTreeMap
Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedcomp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap thats copies the contents of the provided map
-
avlTreeMap
public <V> Char2ObjectAVLTreeMap<V> avlTreeMap(Map<? extends Character, ? extends V> map, CharComparator comp) Helper function to unify code- Typparameter:
V- the keyType of elements maintained by this Collection- Parameter:
map- that should be clonedcomp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap thats copies the contents of the provided map
- Note:
- the map will be unboxed
-