Klasse Float2ObjectLinkedOpenCustomHashMap<V>

Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Map<Float,V>, FloatFunction<V>, Float2ObjectMap<V>, Float2ObjectOrderedMap<V>, ITrimmable

public class Float2ObjectLinkedOpenCustomHashMap<V> extends Float2ObjectOpenCustomHashMap<V> implements Float2ObjectOrderedMap<V>
A Type Specific LinkedHashMap that allows for custom HashControl. That uses arrays to create links between nodes. For cases where Objects/primitive do not allow hashcoding this can be really useful and provide a lot of control. This implementation of SortedMap does not support SubMaps of any kind. It implements the interface due to sortability and first/last access
  • Konstruktordetails

    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(FloatStrategy strategy)
      Default Constructor
      Parameter:
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(int minCapacity, FloatStrategy strategy)
      Constructor that defines the minimum capacity
      Parameter:
      minCapacity - the minimum capacity the HashMap is allowed to be.
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the minimum capacity is negative
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(int minCapacity, float loadFactor, FloatStrategy strategy)
      Constructor that defines the minimum capacity and load factor
      Parameter:
      minCapacity - the minimum capacity the HashMap is allowed to be.
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the minimum capacity is negative
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Float[] keys, V[] values, FloatStrategy strategy)
      Helper constructor that allow to create a map from boxed values (it will unbox them)
      Parameter:
      keys - the keys that should be put into the map
      values - the values that should be put into the map.
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the keys and values do not match in lenght
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Float[] keys, V[] values, float loadFactor, FloatStrategy strategy)
      Helper constructor that allow to create a map from boxed values (it will unbox them)
      Parameter:
      keys - the keys that should be put into the map
      values - the values that should be put into the map.
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the keys and values do not match in lenght
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(float[] keys, V[] values, FloatStrategy strategy)
      Helper constructor that allow to create a map from unboxed values
      Parameter:
      keys - the keys that should be put into the map
      values - the values that should be put into the map.
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the keys and values do not match in lenght
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(float[] keys, V[] values, float loadFactor, FloatStrategy strategy)
      Helper constructor that allow to create a map from unboxed values
      Parameter:
      keys - the keys that should be put into the map
      values - the values that should be put into the map.
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the keys and values do not match in lenght
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Map<? extends Float,? extends V> map, FloatStrategy strategy)
      A Helper constructor that allows to create a Map with exactly the same values as the provided map.
      Parameter:
      map - the values that should be present in the map
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Map<? extends Float,? extends V> map, float loadFactor, FloatStrategy strategy)
      A Helper constructor that allows to create a Map with exactly the same values as the provided map.
      Parameter:
      map - the values that should be present in the map
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> map, FloatStrategy strategy)
      A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
      Parameter:
      map - the values that should be present in the map
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • Float2ObjectLinkedOpenCustomHashMap

      public Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> map, float loadFactor, FloatStrategy strategy)
      A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
      Parameter:
      map - the values that should be present in the map
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
  • Methodendetails