Klasse FloatLinkedOpenCustomHashSet

Alle implementierten Schnittstellen:
Iterable<Float>, Collection<Float>, Set<Float>, FloatCollection, FloatIterable, FloatOrderedSet, FloatSet, ISizeProvider, ITrimmable

public class FloatLinkedOpenCustomHashSet extends FloatOpenCustomHashSet implements FloatOrderedSet
A Type Specific LinkedHashSet that allows for custom HashControl. That uses arrays to create links between nodes. For cases where Objects/primitive do not allow hashcoding this can be really useful and provide a lot of control. This implementation of SortedSet does not support SubSet of any kind. It implements the interface due to sortability and first/last access
  • Konstruktordetails

    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(FloatStrategy strategy)
      Default Contstructor
      Parameter:
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(int minCapacity, FloatStrategy strategy)
      Constructor that defines the minimum capacity
      Parameter:
      minCapacity - the minimum capacity the HashSet is allowed to be.
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the minimum capacity is negative
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(int minCapacity, float loadFactor, FloatStrategy strategy)
      Constructor that defines the minimum capacity and load factor
      Parameter:
      minCapacity - the minimum capacity the HashSet is allowed to be.
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the minimum capacity is negative
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(float[] array, FloatStrategy strategy)
      Helper constructor that allow to create a set from unboxed values
      Parameter:
      array - the elements that should be put into the set
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(float[] array, float loadFactor, FloatStrategy strategy)
      Helper constructor that allow to create a set from unboxed values
      Parameter:
      array - the elements that should be put into the set
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(float[] array, int offset, int length, FloatStrategy strategy)
      Helper constructor that allow to create a set from unboxed values
      Parameter:
      array - the elements that should be put into the set
      offset - the starting index within the array that should be used
      length - the amount of elements used from the array
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if offset and length causes to step outside of the arrays range
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(float[] array, int offset, int length, float loadFactor, FloatStrategy strategy)
      Helper constructor that allow to create a set from unboxed values
      Parameter:
      array - the elements that should be put into the set
      offset - the starting index within the array that should be used
      length - the amount of elements used from the array
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
      IllegalStateException - if offset and length causes to step outside of the arrays range
    • FloatLinkedOpenCustomHashSet

      @Deprecated public FloatLinkedOpenCustomHashSet(Collection<? extends Float> collection, FloatStrategy strategy)
      Veraltet.
      A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
      Parameter:
      collection - the set the elements should be added to the Set
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      @Deprecated public FloatLinkedOpenCustomHashSet(Collection<? extends Float> collection, float loadFactor, FloatStrategy strategy)
      Veraltet.
      A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
      Parameter:
      collection - the set the elements should be added to the Set
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(FloatCollection collection, FloatStrategy strategy)
      A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
      Parameter:
      collection - the set the elements should be added to the Set
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(FloatCollection collection, float loadFactor, FloatStrategy strategy)
      A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
      Parameter:
      collection - the set the elements should be added to the Set
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(Iterator<Float> iterator, FloatStrategy strategy)
      A Helper constructor that allows to create a set from a iterator of an unknown size
      Parameter:
      iterator - the elements that should be added to the set
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(Iterator<Float> iterator, float loadFactor, FloatStrategy strategy)
      A Helper constructor that allows to create a set from a iterator of an unknown size
      Parameter:
      iterator - the elements that should be added to the set
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(FloatIterator iterator, FloatStrategy strategy)
      A Helper constructor that allows to create a set from a iterator of an unknown size
      Parameter:
      iterator - the elements that should be added to the set
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
    • FloatLinkedOpenCustomHashSet

      public FloatLinkedOpenCustomHashSet(FloatIterator iterator, float loadFactor, FloatStrategy strategy)
      A Helper constructor that allows to create a set from a iterator of an unknown size
      Parameter:
      iterator - the elements that should be added to the set
      loadFactor - the percentage of how full the backing array can be before they resize
      strategy - the strategy that allows hash control.
      Löst aus:
      NullPointerException - if Strategy is null
      IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1
  • Methodendetails