Klasse Float2BooleanLinkedOpenHashMap

Alle implementierten Schnittstellen:
Map<Float,Boolean>, FloatPredicate, Float2BooleanMap, Float2BooleanOrderedMap, ITrimmable

public class Float2BooleanLinkedOpenHashMap extends Float2BooleanOpenHashMap implements Float2BooleanOrderedMap
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

    • Float2BooleanLinkedOpenHashMap

      public Float2BooleanLinkedOpenHashMap()
      Default Constructor
    • Float2BooleanLinkedOpenHashMap

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

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

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

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

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

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

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

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

      public Float2BooleanLinkedOpenHashMap(Float2BooleanMap 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
    • Float2BooleanLinkedOpenHashMap

      public Float2BooleanLinkedOpenHashMap(Float2BooleanMap 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