Klasse Double2BooleanLinkedOpenHashMap

Alle implementierten Schnittstellen:
DoublePredicate, Map<Double,Boolean>, Double2BooleanMap, Double2BooleanOrderedMap, ITrimmable

public class Double2BooleanLinkedOpenHashMap extends Double2BooleanOpenHashMap implements Double2BooleanOrderedMap
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

    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap()
      Default Constructor
    • Double2BooleanLinkedOpenHashMap

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

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

      public Double2BooleanLinkedOpenHashMap(Double[] 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(Double[] 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(double[] 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(double[] 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(Map<? extends Double,? 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(Map<? extends Double,? 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(Double2BooleanMap 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
    • Double2BooleanLinkedOpenHashMap

      public Double2BooleanLinkedOpenHashMap(Double2BooleanMap 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