Klasse DoubleLinkedList

Alle implementierten Schnittstellen:
Iterable<Double>, Collection<Double>, List<Double>, DoubleCollection, DoubleIterable, DoubleStack, DoubleList, DoublePriorityDequeue, DoublePriorityQueue, ISizeProvider

public class DoubleLinkedList extends AbstractDoubleList implements DoublePriorityDequeue, DoubleStack
A Type-Specific LinkedList implementation of list that is written to reduce (un)boxing

This implementation is optimized to improve how data is processed with interfaces like DoubleStack and with optimized functions that use type-specific implementations for primitives and optimized logic for bulk actions.

  • Konstruktordetails

    • DoubleLinkedList

      public DoubleLinkedList()
      Creates a new LinkedList.
    • DoubleLinkedList

      @Deprecated public DoubleLinkedList(Collection<? extends Double> c)
      Veraltet.
      Creates a new LinkedList a copy with the contents of the Collection.
      Parameter:
      c - the elements that should be added into the list
    • DoubleLinkedList

      public DoubleLinkedList(DoubleCollection c)
      Creates a new LinkedList a copy with the contents of the Collection.
      Parameter:
      c - the elements that should be added into the list
    • DoubleLinkedList

      public DoubleLinkedList(DoubleList l)
      Creates a new LinkedList a copy with the contents of the List.
      Parameter:
      l - the elements that should be added into the list
    • DoubleLinkedList

      public DoubleLinkedList(double... a)
      Creates a new LinkedList with a Copy of the array
      Parameter:
      a - the array that should be copied
    • DoubleLinkedList

      public DoubleLinkedList(double[] a, int length)
      Creates a new LinkedList with a Copy of the array with a custom length
      Parameter:
      a - the array that should be copied
      length - the desired length that should be copied
    • DoubleLinkedList

      public DoubleLinkedList(double[] a, int offset, int length)
      Creates a new LinkedList with a Copy of the array with in the custom range.
      Parameter:
      a - the array that should be copied
      offset - the starting offset of where the array should be copied from
      length - the desired length that should be copied
      Löst aus:
      IllegalStateException - if offset is smaller then 0
      IllegalStateException - if the offset + length exceeds the array length
  • Methodendetails

    • add

      public boolean add(double e)
      Beschreibung aus Klasse kopiert: AbstractDoubleList
      A Type-Specific implementation of add function that delegates to List.add(int, Object)
      Angegeben von:
      add in Schnittstelle DoubleCollection
      Angegeben von:
      add in Schnittstelle DoubleList
      Setzt außer Kraft:
      add in Klasse AbstractDoubleList
      Parameter:
      e - the element to add
      Gibt zurück:
      true if the list was modified
      Siehe auch:
    • add

      public void add(int index, double e)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific add Function to reduce (un)boxing
      Angegeben von:
      add in Schnittstelle DoubleList
      Parameter:
      index - index at which the specified element is to be inserted
      e - the element to add
      Siehe auch:
    • addAll

      public boolean addAll(int index, DoubleCollection c)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific addAll Function to reduce (un)boxing
      Angegeben von:
      addAll in Schnittstelle DoubleList
      Parameter:
      index - index at which the specified elements is to be inserted
      c - the elements that need to be added
      Gibt zurück:
      true if the list was modified
      Siehe auch:
    • addAll

      public boolean addAll(int index, DoubleList c)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific and optimized addAll function that allows a faster transfer of elements
      Angegeben von:
      addAll in Schnittstelle DoubleList
      Parameter:
      index - index at which the specified elements is to be inserted
      c - the elements that need to be added
      Gibt zurück:
      true if the list was modified
    • addAll

      @Deprecated public boolean addAll(int index, Collection<? extends Double> c)
      Veraltet.
      Angegeben von:
      addAll in Schnittstelle List<Double>
    • enqueue

      public void enqueue(double e)
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Method to insert a element into the PriorityQueue
      Angegeben von:
      enqueue in Schnittstelle DoublePriorityQueue
      Parameter:
      e - the element that should be inserted
    • enqueueFirst

      public void enqueueFirst(double e)
      Beschreibung aus Schnittstelle kopiert: DoublePriorityDequeue
      Method to insert a element into the first Index instead of the last.
      Angegeben von:
      enqueueFirst in Schnittstelle DoublePriorityDequeue
      Parameter:
      e - the element that should be inserted into the first place
    • push

      public void push(double e)
      Beschreibung aus Schnittstelle kopiert: DoubleStack
      Inserts a given Object on top of the stack
      Angegeben von:
      push in Schnittstelle DoubleStack
      Parameter:
      e - the Object to insert
      Siehe auch:
    • addAll

      public boolean addAll(double[] e, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      A Type-Specific Array based addAll method to reduce the amount of Wrapping
      Angegeben von:
      addAll in Schnittstelle DoubleCollection
      Parameter:
      e - the elements that should be added
      offset - where to start within the array
      length - how many elements of the array should be added
      Gibt zurück:
      if the collection was modified
    • addElements

      public void addElements(int from, double[] a, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A function to fast add elements to the list
      Angegeben von:
      addElements in Schnittstelle DoubleList
      Parameter:
      from - the index where the elements should be added into the list
      a - the elements that should be added
      offset - the start index of the array should be read from
      length - how many elements should be read from
    • getElements

      public double[] getElements(int from, double[] a, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A function to fast fetch elements from the list
      Angegeben von:
      getElements in Schnittstelle DoubleList
      Parameter:
      from - index where the list should be fetching elements from
      a - the array where the values should be inserted to
      offset - the startIndex of where the array should be written to
      length - the number of elements the values should be fetched from
      Gibt zurück:
      the inputArray
    • first

      public double first()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Shows the element that is to be returned next
      Angegeben von:
      first in Schnittstelle DoublePriorityQueue
      Gibt zurück:
      the first element in the Queue
    • last

      public double last()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityDequeue
      Peeking function for the last element
      Angegeben von:
      last in Schnittstelle DoublePriorityDequeue
      Gibt zurück:
      the Last Element within the dequeue without deleting it
    • getFirstDouble

      public double getFirstDouble()
      Beschreibung aus Schnittstelle kopiert: DoubleList
      Helper method that returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.
      Angegeben von:
      getFirstDouble in Schnittstelle DoubleList
      Gibt zurück:
      first element of the list
    • getLastDouble

      public double getLastDouble()
      Beschreibung aus Schnittstelle kopiert: DoubleList
      Helper method that returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.
      Angegeben von:
      getLastDouble in Schnittstelle DoubleList
      Gibt zurück:
      last element of the list
    • removeFirstDouble

      public double removeFirstDouble()
      Beschreibung aus Schnittstelle kopiert: DoubleList
      Helper method that removes and returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.
      Angegeben von:
      removeFirstDouble in Schnittstelle DoubleList
      Gibt zurück:
      first element of the list and removes it
    • removeLastDouble

      public double removeLastDouble()
      Beschreibung aus Schnittstelle kopiert: DoubleList
      Helper method that removes and returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.
      Angegeben von:
      removeLastDouble in Schnittstelle DoubleList
      Gibt zurück:
      last element of the list and removes it
    • peek

      public double peek(int index)
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Peeking function to see whats inside the queue.
      Angegeben von:
      peek in Schnittstelle DoublePriorityQueue
      Angegeben von:
      peek in Schnittstelle DoubleStack
      Parameter:
      index - of the element that is requested to be viewed.
      Gibt zurück:
      the element that is requested
      Siehe auch:
    • getDouble

      public double getDouble(int index)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific get function to reduce (un)boxing
      Angegeben von:
      getDouble in Schnittstelle DoubleList
      Parameter:
      index - the index of the value that is requested
      Gibt zurück:
      the value at the given index
      Siehe auch:
    • contains

      @Deprecated public boolean contains(Object e)
      Veraltet.
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection

      This default implementation delegates to the corresponding type-specific function.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      contains in Schnittstelle Collection<Double>
      Angegeben von:
      contains in Schnittstelle DoubleCollection
      Angegeben von:
      contains in Schnittstelle DoubleList
      Angegeben von:
      contains in Schnittstelle List<Double>
      Setzt außer Kraft:
      contains in Klasse AbstractDoubleCollection
    • indexOf

      @Deprecated public int indexOf(Object o)
      Veraltet.
      Beschreibung aus Klasse kopiert: AbstractDoubleList
      The IndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      indexOf in Schnittstelle DoubleList
      Angegeben von:
      indexOf in Schnittstelle List<Double>
      Setzt außer Kraft:
      indexOf in Klasse AbstractDoubleList
      Parameter:
      o - the value that the index is searched for.
      Gibt zurück:
      index of the value that was searched for. -1 if not found
    • lastIndexOf

      @Deprecated public int lastIndexOf(Object o)
      Veraltet.
      Beschreibung aus Klasse kopiert: AbstractDoubleList
      The lastIndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      lastIndexOf in Schnittstelle DoubleList
      Angegeben von:
      lastIndexOf in Schnittstelle List<Double>
      Setzt außer Kraft:
      lastIndexOf in Klasse AbstractDoubleList
      Parameter:
      o - the value that the index is searched for.
      Gibt zurück:
      the last index of the value that was searched for. -1 if not found
    • contains

      public boolean contains(double e)
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection
      A Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.
      Angegeben von:
      contains in Schnittstelle DoubleCollection
      Angegeben von:
      contains in Schnittstelle DoublePriorityQueue
      Setzt außer Kraft:
      contains in Klasse AbstractDoubleCollection
      Parameter:
      e - the element that should be searched for.
      Gibt zurück:
      true if the value was found.
    • indexOf

      public int indexOf(double e)
      Beschreibung aus Klasse kopiert: AbstractDoubleList
      The indexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      indexOf in Schnittstelle DoubleList
      Setzt außer Kraft:
      indexOf in Klasse AbstractDoubleList
      Parameter:
      e - the value that the index is searched for.
      Gibt zurück:
      index of the value that was searched for. -1 if not found
    • lastIndexOf

      public int lastIndexOf(double e)
      Beschreibung aus Klasse kopiert: AbstractDoubleList
      The lastIndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      lastIndexOf in Schnittstelle DoubleList
      Setzt außer Kraft:
      lastIndexOf in Klasse AbstractDoubleList
      Parameter:
      e - the value that the index is searched for.
      Gibt zurück:
      the last index of the value that was searched for. -1 if not found
    • listIterator

      public DoubleListIterator listIterator(int index)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific Iterator of listIterator
      Angegeben von:
      listIterator in Schnittstelle DoubleList
      Angegeben von:
      listIterator in Schnittstelle List<Double>
      Setzt außer Kraft:
      listIterator in Klasse AbstractDoubleList
      Siehe auch:
    • primitiveStream

      public DoubleStream primitiveStream()
      Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
      Angegeben von:
      primitiveStream in Schnittstelle DoubleCollection
      Gibt zurück:
      a Stream of the closest java type
    • parallelPrimitiveStream

      public DoubleStream parallelPrimitiveStream()
      Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
      Angegeben von:
      parallelPrimitiveStream in Schnittstelle DoubleCollection
      Gibt zurück:
      a Stream of the closest java type
    • spliterator

      public 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 DoubleList
      Angegeben von:
      spliterator in Schnittstelle Iterable<Double>
      Angegeben von:
      spliterator in Schnittstelle List<Double>
      Gibt zurück:
      type specific splititerator
    • forEach

      public void forEach(DoubleConsumer action)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      A Type Specific foreach function that reduces (un)boxing
      Angegeben von:
      forEach in Schnittstelle DoubleIterable
      Parameter:
      action - The action to be performed for each element
      Siehe auch:
    • forEachIndexed

      public void forEachIndexed(IntDoubleConsumer action)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
      Angegeben von:
      forEachIndexed in Schnittstelle DoubleIterable
      Angegeben von:
      forEachIndexed in Schnittstelle DoubleList
      Parameter:
      action - The action to be performed for each element
    • forEach

      public <E> void forEach(E input, ObjectDoubleConsumer<E> action)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
      Angegeben von:
      forEach in Schnittstelle DoubleIterable
      Typparameter:
      E - the generic type of the Object
      Parameter:
      input - the object that should be included
      action - The action to be performed for each element
    • matchesAny

      public boolean matchesAny(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce stream usage that allows to filter for any matches.
      Angegeben von:
      matchesAny in Schnittstelle DoubleIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      true if any matches were found
    • matchesNone

      public boolean matchesNone(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce stream usage that allows to filter for no matches.
      Angegeben von:
      matchesNone in Schnittstelle DoubleIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      true if no matches were found
    • matchesAll

      public boolean matchesAll(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce stream usage that allows to filter for all matches.
      Angegeben von:
      matchesAll in Schnittstelle DoubleIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      true if all matches.
    • findFirst

      public double findFirst(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce stream usage that allows to filter for the first match.
      Angegeben von:
      findFirst in Schnittstelle DoubleIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      the found value or the null equivalent variant.
    • reduce

      public double reduce(double identity, DoubleDoubleUnaryOperator operator)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Performs a reduction on the elements of this Iterable
      Angegeben von:
      reduce in Schnittstelle DoubleIterable
      Parameter:
      identity - the start value
      operator - the operation that should be applied
      Gibt zurück:
      the reduction result, returns identity if nothing was found
    • reduce

      public double reduce(DoubleDoubleUnaryOperator operator)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Performs a reduction on the elements of this Iterable
      Angegeben von:
      reduce in Schnittstelle DoubleIterable
      Parameter:
      operator - the operation that should be applied
      Gibt zurück:
      the reduction result, returns null value if nothing was found
    • count

      public int count(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleIterable
      Helper function to reduce stream usage that allows to count the valid elements.
      Angegeben von:
      count in Schnittstelle DoubleIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      the amount of Valid Elements
    • set

      public double set(int index, double e)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific set function to reduce (un)boxing
      Angegeben von:
      set in Schnittstelle DoubleList
      Parameter:
      index - index of the element to replace
      e - element to be stored at the specified position
      Gibt zurück:
      the element previously at the specified position
      Siehe auch:
    • replaceAll

      @Deprecated public void replaceAll(UnaryOperator<Double> o)
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: DoubleList

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      replaceAll in Schnittstelle DoubleList
      Angegeben von:
      replaceAll in Schnittstelle List<Double>
    • replaceDoubles

      public void replaceDoubles(DoubleUnaryOperator o)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific replace function to reduce (un)boxing
      Angegeben von:
      replaceDoubles in Schnittstelle DoubleList
      Parameter:
      o - the action to replace the values
    • onChanged

      public void onChanged()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Allows to notify the Queue to be revalidate its data
      Angegeben von:
      onChanged in Schnittstelle DoublePriorityQueue
    • comparator

      public DoubleComparator comparator()
      Angegeben von:
      comparator in Schnittstelle DoublePriorityQueue
      Gibt zurück:
      the sorter of the Queue, can be null
    • dequeue

      public double dequeue()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Method to extract a element from the PriorityQueue
      Angegeben von:
      dequeue in Schnittstelle DoublePriorityQueue
      Gibt zurück:
      a element from the Queue
    • dequeueLast

      public double dequeueLast()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityDequeue
      A Method to remove a element from the last place instead of the first
      Angegeben von:
      dequeueLast in Schnittstelle DoublePriorityDequeue
      Gibt zurück:
      the last element inserted
    • pop

      public double pop()
      Beschreibung aus Schnittstelle kopiert: DoubleStack
      Removes the Object on top of the stack.
      Angegeben von:
      pop in Schnittstelle DoubleStack
      Gibt zurück:
      the element that is on top of the stack
      Siehe auch:
    • removeFirst

      public boolean removeFirst(double e)
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Removes the first found element in the queue
      Angegeben von:
      removeFirst in Schnittstelle DoublePriorityQueue
      Parameter:
      e - the element that should be removed
      Gibt zurück:
      if a searched element was removed
    • removeLast

      public boolean removeLast(double e)
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      Removes the last found element in the queue
      Angegeben von:
      removeLast in Schnittstelle DoublePriorityQueue
      Parameter:
      e - the element that should be removed
      Gibt zurück:
      if a searched element was removed
    • swapRemove

      public double swapRemove(int index)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.
      Angegeben von:
      swapRemove in Schnittstelle DoubleList
      Parameter:
      index - the index of the element to be removed
      Gibt zurück:
      the element previously at the specified position
    • swapRemoveDouble

      public boolean swapRemoveDouble(double e)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.
      Angegeben von:
      swapRemoveDouble in Schnittstelle DoubleList
      Setzt außer Kraft:
      swapRemoveDouble in Klasse AbstractDoubleList
      Parameter:
      e - the element that should be removed
      Gibt zurück:
      true if the element was removed
    • remDouble

      public boolean remDouble(double e)
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection
      A Type-Specific implementation of remove. This implementation iterates over the elements until it finds the element that is searched for or it runs out of elements. It stops after finding the first element
      Angegeben von:
      remDouble in Schnittstelle DoubleCollection
      Setzt außer Kraft:
      remDouble in Klasse AbstractDoubleCollection
      Parameter:
      e - the element that is searched for
      Gibt zurück:
      true if the element was found and removed.
      Siehe auch:
    • removeDouble

      public double removeDouble(int index)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A Type-Specific remove function to reduce (un)boxing
      Angegeben von:
      removeDouble in Schnittstelle DoubleList
      Parameter:
      index - the index of the element to be removed
      Gibt zurück:
      the element previously at the specified position
      Siehe auch:
    • removeElements

      public void removeElements(int from, int to)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      a function to fast remove elements from the list.
      Angegeben von:
      removeElements in Schnittstelle DoubleList
      Parameter:
      from - the start index of where the elements should be removed from (inclusive)
      to - the end index of where the elements should be removed to (exclusive)
    • extractElements

      public double[] extractElements(int from, int to)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      A function to fast extract elements out of the list, this removes the elements that were fetched.
      Angegeben von:
      extractElements in Schnittstelle DoubleList
      Parameter:
      from - the start index of where the elements should be fetched from (inclusive)
      to - the end index of where the elements should be fetched to (exclusive)
      Gibt zurück:
      a array of the elements that were fetched
    • fillBuffer

      public void fillBuffer(DoubleBuffer buffer)
      Beschreibung aus Schnittstelle kopiert: DoubleList
      Helper function that allows to fastFill a buffer reducing the duplication requirement
      Angegeben von:
      fillBuffer in Schnittstelle DoubleList
      Parameter:
      buffer - where the data should be stored in.
    • removeAll

      @Deprecated public boolean removeAll(Collection<?> c)
      Veraltet.
      Angegeben von:
      removeAll in Schnittstelle Collection<Double>
      Angegeben von:
      removeAll in Schnittstelle List<Double>
      Setzt außer Kraft:
      removeAll in Klasse AbstractCollection<Double>
    • retainAll

      @Deprecated public boolean retainAll(Collection<?> c)
      Veraltet.
      Angegeben von:
      retainAll in Schnittstelle Collection<Double>
      Angegeben von:
      retainAll in Schnittstelle List<Double>
      Setzt außer Kraft:
      retainAll in Klasse AbstractCollection<Double>
    • removeAll

      public boolean removeAll(DoubleCollection c)
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection
      A Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.
      Angegeben von:
      removeAll in Schnittstelle DoubleCollection
      Setzt außer Kraft:
      removeAll in Klasse AbstractDoubleCollection
      Parameter:
      c - the elements that should be deleted
      Gibt zurück:
      true if the collection was modified.
      Siehe auch:
    • removeAll

      public boolean removeAll(DoubleCollection c, DoubleConsumer r)
      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      A Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.
      Angegeben von:
      removeAll in Schnittstelle DoubleCollection
      Setzt außer Kraft:
      removeAll in Klasse AbstractDoubleCollection
      Parameter:
      c - the collection of elements that should be removed
      r - elements that got removed
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • retainAll

      public boolean retainAll(DoubleCollection c)
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection
      A Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.
      Angegeben von:
      retainAll in Schnittstelle DoubleCollection
      Setzt außer Kraft:
      retainAll in Klasse AbstractDoubleCollection
      Parameter:
      c - the elements that should be kept
      Gibt zurück:
      true if the collection was modified.
      Siehe auch:
    • retainAll

      public boolean retainAll(DoubleCollection c, DoubleConsumer r)
      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      A Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.
      Angegeben von:
      retainAll in Schnittstelle DoubleCollection
      Setzt außer Kraft:
      retainAll in Klasse AbstractDoubleCollection
      Parameter:
      c - the collection of elements that should be kept
      r - elements that got removed
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • removeIf

      @Deprecated public boolean removeIf(Predicate<? super Double> filter)
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: DoubleCollection

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      removeIf in Schnittstelle Collection<Double>
      Angegeben von:
      removeIf in Schnittstelle DoubleCollection
    • remIf

      public boolean remIf(DoublePredicate filter)
      Beschreibung aus Schnittstelle kopiert: DoubleCollection
      A Type-Specific removeIf function to reduce (un)boxing.

      Removes elements that were selected by the filter

      Angegeben von:
      remIf in Schnittstelle DoubleCollection
      Parameter:
      filter - Filters the elements that should be removed
      Gibt zurück:
      true if the collection was modified
      Siehe auch:
    • toArray

      public Object[] toArray()
      Angegeben von:
      toArray in Schnittstelle Collection<Double>
      Angegeben von:
      toArray in Schnittstelle List<Double>
      Setzt außer Kraft:
      toArray in Klasse AbstractCollection<Double>
    • toArray

      public <E> E[] toArray(E[] a)
      Angegeben von:
      toArray in Schnittstelle Collection<Double>
      Angegeben von:
      toArray in Schnittstelle List<Double>
      Setzt außer Kraft:
      toArray in Klasse AbstractCollection<Double>
    • toDoubleArray

      public double[] toDoubleArray(double[] a)
      Beschreibung aus Klasse kopiert: AbstractDoubleCollection
      A Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.
      Angegeben von:
      toDoubleArray in Schnittstelle DoubleCollection
      Angegeben von:
      toDoubleArray in Schnittstelle DoublePriorityQueue
      Angegeben von:
      toDoubleArray in Schnittstelle DoubleStack
      Setzt außer Kraft:
      toDoubleArray in Klasse AbstractDoubleCollection
      Parameter:
      a - array that the elements should be injected to. If null or to small a new array with the right size is created
      Gibt zurück:
      an array containing all of the elements in this collection
      Siehe auch:
    • size

      public int size()
      Beschreibung aus Schnittstelle kopiert: DoubleStack
      Provides the amount of elements currently in the stack
      Angegeben von:
      size in Schnittstelle Collection<Double>
      Angegeben von:
      size in Schnittstelle DoublePriorityQueue
      Angegeben von:
      size in Schnittstelle DoubleStack
      Angegeben von:
      size in Schnittstelle ISizeProvider
      Angegeben von:
      size in Schnittstelle List<Double>
      Angegeben von:
      size in Klasse AbstractCollection<Double>
      Gibt zurück:
      the amount of elements that are stored in the PriorityQueue
    • clear

      public void clear()
      Beschreibung aus Schnittstelle kopiert: DoublePriorityQueue
      clears all elements within the PriorityQueue, this does not resize the backing arrays
      Angegeben von:
      clear in Schnittstelle Collection<Double>
      Angegeben von:
      clear in Schnittstelle DoublePriorityQueue
      Angegeben von:
      clear in Schnittstelle DoubleStack
      Angegeben von:
      clear in Schnittstelle List<Double>
      Setzt außer Kraft:
      clear in Klasse AbstractCollection<Double>
    • copy

      public DoubleLinkedList 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 DoubleList
      Angegeben von:
      copy in Schnittstelle DoublePriorityDequeue
      Angegeben von:
      copy in Schnittstelle DoublePriorityQueue
      Setzt außer Kraft:
      copy in Klasse AbstractDoubleList
      Gibt zurück:
      a Shallow Copy of the collection