Schnittstelle DoubleOrderedSet

Alle Superschnittstellen:
Collection<Double>, DoubleCollection, DoubleIterable, DoubleSet, ISizeProvider, Iterable<Double>, Set<Double>
Alle bekannten Implementierungsklassen:
DoubleArraySet, DoubleLinkedOpenCustomHashSet, DoubleLinkedOpenHashSet, ImmutableDoubleOpenHashSet

public interface DoubleOrderedSet extends DoubleSet
A Special Set Interface giving Access to some really usefull functions The Idea behind this interface is to allow access to functions that give control to the Order of elements. Since Linked implementations as examples can be reordered outside of the Insertion Order. This interface provides basic access to such functions while also providing some Sorted/NaivgableSet implementations that still fit into here.
  • Methodendetails

    • addAndMoveToFirst

      boolean addAndMoveToFirst(double o)
      A customized add method that allows you to insert into the first index.
      Parameter:
      o - the element that should be inserted
      Gibt zurück:
      true if it was added
      Siehe auch:
    • addAndMoveToLast

      boolean addAndMoveToLast(double o)
      A customized add method that allows you to insert into the last index.
      Parameter:
      o - the element that should be inserted
      Gibt zurück:
      true if it was added
      Siehe auch:
    • moveToFirst

      boolean moveToFirst(double o)
      A specific move method to move a given key to the first index.
      Parameter:
      o - that should be moved to the first index
      Gibt zurück:
      true if the value was moved.
      Note:
      returns false if the value was not present in the first place
    • moveToLast

      boolean moveToLast(double o)
      A specific move method to move a given key to the last index.
      Parameter:
      o - that should be moved to the first last
      Gibt zurück:
      true if the value was moved.
      Note:
      returns false if the value was not present in the first place
    • copy

      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      A Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk
      Angegeben von:
      copy in Schnittstelle DoubleCollection
      Angegeben von:
      copy in Schnittstelle DoubleSet
      Gibt zurück:
      a Shallow Copy of the collection
    • iterator

      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      Returns a Type-Specific Iterator to reduce (un)boxing
      Angegeben von:
      iterator in Schnittstelle Collection<Double>
      Angegeben von:
      iterator in Schnittstelle DoubleCollection
      Angegeben von:
      iterator in Schnittstelle DoubleIterable
      Angegeben von:
      iterator in Schnittstelle DoubleSet
      Angegeben von:
      iterator in Schnittstelle Iterable<Double>
      Angegeben von:
      iterator in Schnittstelle Set<Double>
      Gibt zurück:
      a iterator of the collection
      Siehe auch:
    • iterator

      DoubleBidirectionalIterator iterator(double fromElement)
      A type Specific Iterator starting from a given key
      Parameter:
      fromElement - the element the iterator should start from
      Gibt zurück:
      a iterator starting from the given element
      Löst aus:
      NoSuchElementException - if fromElement isn't found
    • spliterator

      default DoubleSplititerator spliterator()
      A Type Specific Type Splititerator to reduce boxing/unboxing
      Angegeben von:
      spliterator in Schnittstelle Collection<Double>
      Angegeben von:
      spliterator in Schnittstelle DoubleCollection
      Angegeben von:
      spliterator in Schnittstelle DoubleIterable
      Angegeben von:
      spliterator in Schnittstelle DoubleSet
      Angegeben von:
      spliterator in Schnittstelle Iterable<Double>
      Angegeben von:
      spliterator in Schnittstelle Set<Double>
      Gibt zurück:
      type specific splititerator
    • firstDouble

      double firstDouble()
      A method to get the first element in the set
      Gibt zurück:
      first element in the set
    • pollFirstDouble

      double pollFirstDouble()
      A method to get and remove the first element in the set
      Gibt zurück:
      first element in the set
    • lastDouble

      double lastDouble()
      A method to get the last element in the set
      Gibt zurück:
      last element in the set
    • pollLastDouble

      double pollLastDouble()
      A method to get and remove the last element in the set
      Gibt zurück:
      last element in the set
    • synchronize

      default DoubleOrderedSet synchronize()
      Creates a Wrapped OrderedSet that is Synchronized
      Angegeben von:
      synchronize in Schnittstelle DoubleCollection
      Angegeben von:
      synchronize in Schnittstelle DoubleSet
      Gibt zurück:
      a new OrderedSet that is synchronized
      Siehe auch:
    • synchronize

      default DoubleOrderedSet synchronize(Object mutex)
      Creates a Wrapped OrderedSet that is Synchronized
      Angegeben von:
      synchronize in Schnittstelle DoubleCollection
      Angegeben von:
      synchronize in Schnittstelle DoubleSet
      Parameter:
      mutex - is the controller of the synchronization block
      Gibt zurück:
      a new OrderedSet Wrapper that is synchronized
      Siehe auch:
    • unmodifiable

      default DoubleOrderedSet unmodifiable()
      Creates a Wrapped OrderedSet that is unmodifiable
      Angegeben von:
      unmodifiable in Schnittstelle DoubleCollection
      Angegeben von:
      unmodifiable in Schnittstelle DoubleSet
      Gibt zurück:
      a new OrderedSet Wrapper that is unmodifiable
      Siehe auch: