Klasse Object2BooleanLinkedOpenHashMap<T>

Typparameter:
T - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Predicate<T>, Map<T,Boolean>, Object2BooleanMap<T>, Object2BooleanOrderedMap<T>, ITrimmable

public class Object2BooleanLinkedOpenHashMap<T> extends Object2BooleanOpenHashMap<T> implements Object2BooleanOrderedMap<T>
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

    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap()
      Default Constructor
    • Object2BooleanLinkedOpenHashMap

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

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

      public Object2BooleanLinkedOpenHashMap(T[] 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(T[] 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(T[] 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(T[] 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(Map<? extends T,? 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(Map<? extends T,? 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> 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
    • Object2BooleanLinkedOpenHashMap

      public Object2BooleanLinkedOpenHashMap(Object2BooleanMap<T> 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