Klasse Short2FloatLinkedOpenHashMap

Alle implementierten Schnittstellen:
Map<Short,Float>, Short2FloatFunction, Short2FloatMap, Short2FloatOrderedMap, ITrimmable

public class Short2FloatLinkedOpenHashMap extends Short2FloatOpenHashMap implements Short2FloatOrderedMap
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

    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap()
      Default Constructor
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Short[] keys, Float[] 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Short[] keys, Float[] 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(short[] keys, float[] 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(short[] keys, float[] 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Map<? extends Short,? extends Float> 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Map<? extends Short,? extends Float> 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Short2FloatMap 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
    • Short2FloatLinkedOpenHashMap

      public Short2FloatLinkedOpenHashMap(Short2FloatMap 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