Modul speiger.src.collections
Klasse Double2CharMap.MapBuilder
java.lang.Object
speiger.src.collections.doubles.maps.interfaces.Double2CharMap.MapBuilder
- Umschließende Schnittstelle:
Double2CharMap
Helper class that reduces the method spam of the Map Class.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungarrayMap()Helper function to unify codearrayMap(double[] keys, char[] values) Helper function to unify codearrayMap(int size) Helper function to unify codeHelper function to unify codeHelper function to unify codearrayMap(Double2CharMap map) Helper function to unify codeHelper function to unify codeavlTreeMap(double[] keys, char[] values, DoubleComparator comp) Helper function to unify codeavlTreeMap(Double[] keys, Character[] values, DoubleComparator comp) Helper function to unify codeavlTreeMap(Map<? extends Double, ? extends Character> map, DoubleComparator comp) Helper function to unify codeavlTreeMap(DoubleComparator comp) Helper function to unify codeavlTreeMap(Double2CharMap map, DoubleComparator comp) Helper function to unify codecustomLinkedMap(double[] keys, char[] values, DoubleStrategy strategy) Helper function to unify codecustomLinkedMap(int size, DoubleStrategy strategy) Helper function to unify codecustomLinkedMap(Double[] keys, Character[] values, DoubleStrategy strategy) Helper function to unify codecustomLinkedMap(Map<? extends Double, ? extends Character> map, DoubleStrategy strategy) Helper function to unify codecustomLinkedMap(Double2CharMap map, DoubleStrategy strategy) Helper function to unify codecustomLinkedMap(DoubleStrategy strategy) Helper function to unify codecustomMap(double[] keys, char[] values, DoubleStrategy strategy) Helper function to unify codecustomMap(int size, DoubleStrategy strategy) Helper function to unify codecustomMap(Double[] keys, Character[] values, DoubleStrategy strategy) Helper function to unify codecustomMap(Map<? extends Double, ? extends Character> map, DoubleStrategy strategy) Helper function to unify codecustomMap(Double2CharMap map, DoubleStrategy strategy) Helper function to unify codecustomMap(DoubleStrategy strategy) Helper function to unify codeimmutable(double[] keys, char[] values) Helper function to unify codeHelper function to unify codeHelper function to unify codeimmutable(Double2CharMap map) Helper function to unify codeHelper function to unify codelinkedMap(double[] keys, char[] values) Helper function to unify codelinkedMap(int size) Helper function to unify codeHelper function to unify codeHelper function to unify codelinkedMap(Double2CharMap map) Helper function to unify codemap()Helper function to unify codemap(double[] keys, char[] values) Helper function to unify codemap(int size) Helper function to unify codeHelper function to unify codeHelper function to unify codemap(Double2CharMap map) Helper function to unify codeput(double 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 choosenStarts 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 choosenHelper function to unify coderbTreeMap(double[] keys, char[] values, DoubleComparator comp) Helper function to unify coderbTreeMap(Double[] keys, Character[] values, DoubleComparator comp) Helper function to unify coderbTreeMap(Map<? extends Double, ? extends Character> map, DoubleComparator comp) Helper function to unify coderbTreeMap(DoubleComparator comp) Helper function to unify coderbTreeMap(Double2CharMap map, DoubleComparator comp) Helper function to unify codestart()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 choosenstart(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- 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- 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- 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- 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- Gibt zurück:
- a OpenHashMap
-
map
Helper function to unify code- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a OpenHashMap with a mimimum capacity
-
map
Helper function to unify code- 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- 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- 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- 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- Gibt zurück:
- a LinkedOpenHashMap
-
linkedMap
Helper function to unify code- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a LinkedOpenHashMap with a mimimum capacity
-
linkedMap
Helper function to unify code- 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- 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- 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- 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- 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- 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- 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- 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- Parameter:
strategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap
-
customMap
Helper function to unify code- Parameter:
size- the minimum capacity of the Mapstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap with a mimimum capacity
-
customMap
public Double2CharOpenCustomHashMap customMap(double[] keys, char[] values, DoubleStrategy strategy) Helper function to unify code- 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 Double2CharOpenCustomHashMap customMap(Double[] keys, Character[] values, DoubleStrategy strategy) Helper function to unify code- 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- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomOpenHashMap thats copies the contents of the provided map
-
customMap
public Double2CharOpenCustomHashMap customMap(Map<? extends Double, ? extends Character> map, DoubleStrategy strategy) Helper function to unify code- 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- Parameter:
strategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap
-
customLinkedMap
Helper function to unify code- Parameter:
size- the minimum capacity of the Mapstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap with a mimimum capacity
-
customLinkedMap
public Double2CharLinkedOpenCustomHashMap customLinkedMap(double[] keys, char[] values, DoubleStrategy strategy) Helper function to unify code- 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 Double2CharLinkedOpenCustomHashMap customLinkedMap(Double[] keys, Character[] values, DoubleStrategy strategy) Helper function to unify code- 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 Double2CharLinkedOpenCustomHashMap customLinkedMap(Double2CharMap map, DoubleStrategy strategy) Helper function to unify code- Parameter:
map- that should be clonedstrategy- the Hash Controller- Gibt zurück:
- a CustomLinkedOpenHashMap thats copies the contents of the provided map
-
customLinkedMap
public Double2CharLinkedOpenCustomHashMap customLinkedMap(Map<? extends Double, ? extends Character> map, DoubleStrategy strategy) Helper function to unify code- 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- Gibt zurück:
- a OpenHashMap
-
arrayMap
Helper function to unify code- Parameter:
size- the minimum capacity of the Map- Gibt zurück:
- a OpenHashMap with a mimimum capacity
-
arrayMap
Helper function to unify code- 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- 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- 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- 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- Gibt zurück:
- a RBTreeMap
-
rbTreeMap
Helper function to unify code- Parameter:
comp- the Sorter of the TreeMap- Gibt zurück:
- a RBTreeMap
-
rbTreeMap
Helper function to unify code- 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- 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- 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 Double2CharRBTreeMap rbTreeMap(Map<? extends Double, ? extends Character> map, DoubleComparator comp) Helper function to unify code- 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- Gibt zurück:
- a AVLTreeMap
-
avlTreeMap
Helper function to unify code- Parameter:
comp- the Sorter of the TreeMap- Gibt zurück:
- a AVLTreeMap
-
avlTreeMap
Helper function to unify code- 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- 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- 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 Double2CharAVLTreeMap avlTreeMap(Map<? extends Double, ? extends Character> map, DoubleComparator comp) Helper function to unify code- 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
-