Klasse Float2ObjectLinkedOpenHashMap<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 Float2ObjectLinkedOpenHashMap<V> extends Float2ObjectOpenHashMap<V> implements Float2ObjectOrderedMap<V>
A Type Specific LinkedHashMap implementation that uses specific arrays to create links between nodes to remove the wrapping of elements to greatly reduce memory usage. In Addition adding some helper methods to move around elements. This implementation of SortedMap does not support SubMaps of any kind. It implements the interface due to sortability and first/last access
  • Konstruktordetails

    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap()
      Default Constructor
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(int minCapacity)
      Constructor that defines the minimum capacity
      Parameter:
      minCapacity - the minimum capacity the HashMap is allowed to be.
      Löst aus:
      IllegalStateException - if the minimum capacity is negative
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(int minCapacity, float loadFactor)
      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
      Löst aus:
      IllegalStateException - if the minimum capacity is negative
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Float[] keys, V[] values)
      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.
      Löst aus:
      IllegalStateException - if the keys and values do not match in lenght
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Float[] keys, V[] values, float loadFactor)
      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
      Löst aus:
      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
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(float[] keys, V[] values)
      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.
      Löst aus:
      IllegalStateException - if the keys and values do not match in lenght
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(float[] keys, V[] values, float loadFactor)
      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
      Löst aus:
      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
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Map<? extends Float,? extends V> map)
      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
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Map<? extends Float,? extends V> map, float loadFactor)
      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
      Löst aus:
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> map)
      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
    • Float2ObjectLinkedOpenHashMap

      public Float2ObjectLinkedOpenHashMap(Float2ObjectMap<V> map, float loadFactor)
      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
      Löst aus:
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
  • Methodendetails