Klasse Double2FloatMap.MapBuilder

java.lang.Object
speiger.src.collections.doubles.maps.interfaces.Double2FloatMap.MapBuilder
Umschließende Schnittstelle:
Double2FloatMap

public static final class Double2FloatMap.MapBuilder extends Object
Helper class that reduces the method spam of the Map Class.
  • 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

      public Double2FloatMap.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
      Parameter:
      size - the expected minimum size of Elements in the Map, default is 16
      Gibt zurück:
      a MapBuilder
    • put

      public Double2FloatMap.BuilderCache put(double key, float 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
      Parameter:
      key - the key that should be added
      value - the value that should be added
      Gibt zurück:
      a MapBuilder with the key and value stored in it.
    • put

      public Double2FloatMap.BuilderCache put(Double key, Float 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
      Parameter:
      key - the key that should be added
      value - 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

      public Double2FloatOpenHashMap map(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • map

      public Double2FloatOpenHashMap map(double[] keys, float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public Double2FloatOpenHashMap map(Double[] keys, Float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public Double2FloatOpenHashMap map(Map<? extends Double,? extends Float> 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

      public Double2FloatLinkedOpenHashMap linkedMap()
      Helper function to unify code
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public Double2FloatLinkedOpenHashMap linkedMap(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a LinkedOpenHashMap with a mimimum capacity
    • linkedMap

      public Double2FloatLinkedOpenHashMap linkedMap(double[] keys, float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public Double2FloatLinkedOpenHashMap linkedMap(Double[] keys, Float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public ImmutableDouble2FloatOpenHashMap linkedMap(Map<? extends Double,? extends Float> map)
      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

      public ImmutableDouble2FloatOpenHashMap immutable(double[] keys, float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public ImmutableDouble2FloatOpenHashMap immutable(Double[] keys, Float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public ImmutableDouble2FloatOpenHashMap immutable(Map<? extends Double,? extends Float> map)
      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

      public Double2FloatOpenCustomHashMap customMap(DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public Double2FloatOpenCustomHashMap customMap(int size, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap with a mimimum capacity
    • customMap

      public Double2FloatOpenCustomHashMap customMap(double[] keys, float[] values, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - 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 Double2FloatOpenCustomHashMap customMap(Double[] keys, Float[] values, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - 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 cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats copies the contents of the provided map
    • customMap

      public Double2FloatOpenCustomHashMap customMap(Map<? extends Double,? extends Float> map, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • customLinkedMap

      public Double2FloatLinkedOpenCustomHashMap customLinkedMap(DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public Double2FloatLinkedOpenCustomHashMap customLinkedMap(int size, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap with a mimimum capacity
    • customLinkedMap

      public Double2FloatLinkedOpenCustomHashMap customLinkedMap(double[] keys, float[] values, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - 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 Double2FloatLinkedOpenCustomHashMap customLinkedMap(Double[] keys, Float[] values, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - 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 Double2FloatLinkedOpenCustomHashMap customLinkedMap(Double2FloatMap map, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats copies the contents of the provided map
    • customLinkedMap

      public Double2FloatLinkedOpenCustomHashMap customLinkedMap(Map<? extends Double,? extends Float> map, DoubleStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • arrayMap

      public Double2FloatArrayMap arrayMap()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public Double2FloatArrayMap arrayMap(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • arrayMap

      public Double2FloatArrayMap arrayMap(double[] keys, float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public Double2FloatArrayMap arrayMap(Double[] keys, Float[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - 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

      public Double2FloatArrayMap arrayMap(Double2FloatMap 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
    • arrayMap

      public Double2FloatArrayMap arrayMap(Map<? extends Double,? extends Float> 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
    • rbTreeMap

      public Double2FloatRBTreeMap rbTreeMap()
      Helper function to unify code
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public Double2FloatRBTreeMap rbTreeMap(DoubleComparator comp)
      Helper function to unify code
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public Double2FloatRBTreeMap rbTreeMap(double[] keys, float[] values, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - 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

      public Double2FloatRBTreeMap rbTreeMap(Double[] keys, Float[] values, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - 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 cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap thats copies the contents of the provided map
    • rbTreeMap

      public Double2FloatRBTreeMap rbTreeMap(Map<? extends Double,? extends Float> map, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - 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

      public Double2FloatAVLTreeMap avlTreeMap()
      Helper function to unify code
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public Double2FloatAVLTreeMap avlTreeMap(DoubleComparator comp)
      Helper function to unify code
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public Double2FloatAVLTreeMap avlTreeMap(double[] keys, float[] values, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - 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

      public Double2FloatAVLTreeMap avlTreeMap(Double[] keys, Float[] values, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - 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 cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats copies the contents of the provided map
    • avlTreeMap

      public Double2FloatAVLTreeMap avlTreeMap(Map<? extends Double,? extends Float> map, DoubleComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats copies the contents of the provided map
      Note:
      the map will be unboxed