Klasse Float2ByteMap.MapBuilder

java.lang.Object
speiger.src.collections.floats.maps.interfaces.Float2ByteMap.MapBuilder
Umschließende Schnittstelle:
Float2ByteMap

public static final class Float2ByteMap.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 Float2ByteMap.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 Float2ByteMap.BuilderCache put(float key, byte 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 Float2ByteMap.BuilderCache put(Float key, Byte 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

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

      public Float2ByteOpenHashMap 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 Float2ByteOpenHashMap map(float[] keys, byte[] 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 Float2ByteOpenHashMap map(Float[] keys, Byte[] 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 Float2ByteOpenHashMap map(Map<? extends Float,? extends Byte> 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 Float2ByteLinkedOpenHashMap linkedMap()
      Helper function to unify code
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public Float2ByteLinkedOpenHashMap 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 Float2ByteLinkedOpenHashMap linkedMap(float[] keys, byte[] 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 Float2ByteLinkedOpenHashMap linkedMap(Float[] keys, Byte[] 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 ImmutableFloat2ByteOpenHashMap linkedMap(Map<? extends Float,? extends Byte> 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 ImmutableFloat2ByteOpenHashMap immutable(float[] keys, byte[] 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 ImmutableFloat2ByteOpenHashMap immutable(Float[] keys, Byte[] 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 ImmutableFloat2ByteOpenHashMap immutable(Map<? extends Float,? extends Byte> 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 Float2ByteOpenCustomHashMap customMap(FloatStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public Float2ByteOpenCustomHashMap customMap(int size, FloatStrategy 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 Float2ByteOpenCustomHashMap customMap(float[] keys, byte[] values, FloatStrategy 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 Float2ByteOpenCustomHashMap customMap(Float[] keys, Byte[] values, FloatStrategy 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

      public Float2ByteOpenCustomHashMap customMap(Float2ByteMap map, FloatStrategy 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
    • customMap

      public Float2ByteOpenCustomHashMap customMap(Map<? extends Float,? extends Byte> map, FloatStrategy 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 Float2ByteLinkedOpenCustomHashMap customLinkedMap(FloatStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public Float2ByteLinkedOpenCustomHashMap customLinkedMap(int size, FloatStrategy 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 Float2ByteLinkedOpenCustomHashMap customLinkedMap(float[] keys, byte[] values, FloatStrategy 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 Float2ByteLinkedOpenCustomHashMap customLinkedMap(Float[] keys, Byte[] values, FloatStrategy 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 Float2ByteLinkedOpenCustomHashMap customLinkedMap(Float2ByteMap map, FloatStrategy 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 Float2ByteLinkedOpenCustomHashMap customLinkedMap(Map<? extends Float,? extends Byte> map, FloatStrategy 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 Float2ByteArrayMap arrayMap()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public Float2ByteArrayMap 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 Float2ByteArrayMap arrayMap(float[] keys, byte[] 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 Float2ByteArrayMap arrayMap(Float[] keys, Byte[] 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 Float2ByteArrayMap arrayMap(Float2ByteMap 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 Float2ByteArrayMap arrayMap(Map<? extends Float,? extends Byte> 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 Float2ByteRBTreeMap rbTreeMap()
      Helper function to unify code
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

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

      public Float2ByteRBTreeMap rbTreeMap(float[] keys, byte[] values, FloatComparator 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 Float2ByteRBTreeMap rbTreeMap(Float[] keys, Byte[] values, FloatComparator 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

      public Float2ByteRBTreeMap rbTreeMap(Float2ByteMap map, FloatComparator 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
    • rbTreeMap

      public Float2ByteRBTreeMap rbTreeMap(Map<? extends Float,? extends Byte> map, FloatComparator 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 Float2ByteAVLTreeMap avlTreeMap()
      Helper function to unify code
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

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

      public Float2ByteAVLTreeMap avlTreeMap(float[] keys, byte[] values, FloatComparator 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 Float2ByteAVLTreeMap avlTreeMap(Float[] keys, Byte[] values, FloatComparator 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

      public Float2ByteAVLTreeMap avlTreeMap(Float2ByteMap map, FloatComparator 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
    • avlTreeMap

      public Float2ByteAVLTreeMap avlTreeMap(Map<? extends Float,? extends Byte> map, FloatComparator 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