Klasse FloatLinkedList

Alle implementierten Schnittstellen:
Iterable<Float>, Collection<Float>, List<Float>, FloatCollection, FloatIterable, FloatStack, FloatList, FloatPriorityDequeue, FloatPriorityQueue, ISizeProvider

public class FloatLinkedList extends AbstractFloatList implements FloatPriorityDequeue, FloatStack
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 FloatStack and with optimized functions that use type-specific implementations for primitives and optimized logic for bulk actions.

  • Konstruktordetails

    • FloatLinkedList

      public FloatLinkedList()
      Creates a new LinkedList.
    • FloatLinkedList

      @Deprecated public FloatLinkedList(Collection<? extends Float> 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
    • FloatLinkedList

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

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

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

      public FloatLinkedList(float[] 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
    • FloatLinkedList

      public FloatLinkedList(float[] 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(float e)
      Beschreibung aus Klasse kopiert: AbstractFloatList
      A Type-Specific implementation of add function that delegates to List.add(int, Object)
      Angegeben von:
      add in Schnittstelle FloatCollection
      Angegeben von:
      add in Schnittstelle FloatList
      Setzt außer Kraft:
      add in Klasse AbstractFloatList
      Parameter:
      e - the element to add
      Gibt zurück:
      true if the list was modified
      Siehe auch:
    • add

      public void add(int index, float e)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific add Function to reduce (un)boxing
      Angegeben von:
      add in Schnittstelle FloatList
      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, FloatCollection c)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific addAll Function to reduce (un)boxing
      Angegeben von:
      addAll in Schnittstelle FloatList
      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, FloatList c)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific and optimized addAll function that allows a faster transfer of elements
      Angegeben von:
      addAll in Schnittstelle FloatList
      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 Float> c)
      Veraltet.
      Angegeben von:
      addAll in Schnittstelle List<Float>
    • enqueue

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

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

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

      public boolean addAll(float[] e, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: FloatCollection
      A Type-Specific Array based addAll method to reduce the amount of Wrapping
      Angegeben von:
      addAll in Schnittstelle FloatCollection
      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, float[] a, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A function to fast add elements to the list
      Angegeben von:
      addElements in Schnittstelle FloatList
      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 float[] getElements(int from, float[] a, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A function to fast fetch elements from the list
      Angegeben von:
      getElements in Schnittstelle FloatList
      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 float first()
      Beschreibung aus Schnittstelle kopiert: FloatPriorityQueue
      Shows the element that is to be returned next
      Angegeben von:
      first in Schnittstelle FloatPriorityQueue
      Gibt zurück:
      the first element in the Queue
    • last

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

      public float getFirstFloat()
      Beschreibung aus Schnittstelle kopiert: FloatList
      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:
      getFirstFloat in Schnittstelle FloatList
      Gibt zurück:
      first element of the list
    • getLastFloat

      public float getLastFloat()
      Beschreibung aus Schnittstelle kopiert: FloatList
      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:
      getLastFloat in Schnittstelle FloatList
      Gibt zurück:
      last element of the list
    • removeFirstFloat

      public float removeFirstFloat()
      Beschreibung aus Schnittstelle kopiert: FloatList
      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:
      removeFirstFloat in Schnittstelle FloatList
      Gibt zurück:
      first element of the list and removes it
    • removeLastFloat

      public float removeLastFloat()
      Beschreibung aus Schnittstelle kopiert: FloatList
      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:
      removeLastFloat in Schnittstelle FloatList
      Gibt zurück:
      last element of the list and removes it
    • peek

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

      public float getFloat(int index)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific get function to reduce (un)boxing
      Angegeben von:
      getFloat in Schnittstelle FloatList
      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: AbstractFloatCollection

      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<Float>
      Angegeben von:
      contains in Schnittstelle FloatCollection
      Angegeben von:
      contains in Schnittstelle FloatList
      Angegeben von:
      contains in Schnittstelle List<Float>
      Setzt außer Kraft:
      contains in Klasse AbstractFloatCollection
    • indexOf

      @Deprecated public int indexOf(Object o)
      Veraltet.
      Beschreibung aus Klasse kopiert: AbstractFloatList
      The IndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      indexOf in Schnittstelle FloatList
      Angegeben von:
      indexOf in Schnittstelle List<Float>
      Setzt außer Kraft:
      indexOf in Klasse AbstractFloatList
      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: AbstractFloatList
      The lastIndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      lastIndexOf in Schnittstelle FloatList
      Angegeben von:
      lastIndexOf in Schnittstelle List<Float>
      Setzt außer Kraft:
      lastIndexOf in Klasse AbstractFloatList
      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(float e)
      Beschreibung aus Klasse kopiert: AbstractFloatCollection
      A Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.
      Angegeben von:
      contains in Schnittstelle FloatCollection
      Angegeben von:
      contains in Schnittstelle FloatPriorityQueue
      Setzt außer Kraft:
      contains in Klasse AbstractFloatCollection
      Parameter:
      e - the element that should be searched for.
      Gibt zurück:
      true if the value was found.
    • indexOf

      public int indexOf(float e)
      Beschreibung aus Klasse kopiert: AbstractFloatList
      The indexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      indexOf in Schnittstelle FloatList
      Setzt außer Kraft:
      indexOf in Klasse AbstractFloatList
      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(float e)
      Beschreibung aus Klasse kopiert: AbstractFloatList
      The lastIndexOf implementation iterates over all elements and compares them to the search value.
      Angegeben von:
      lastIndexOf in Schnittstelle FloatList
      Setzt außer Kraft:
      lastIndexOf in Klasse AbstractFloatList
      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 FloatListIterator listIterator(int index)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific Iterator of listIterator
      Angegeben von:
      listIterator in Schnittstelle FloatList
      Angegeben von:
      listIterator in Schnittstelle List<Float>
      Setzt außer Kraft:
      listIterator in Klasse AbstractFloatList
      Siehe auch:
    • primitiveStream

      public DoubleStream primitiveStream()
      Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
      Angegeben von:
      primitiveStream in Schnittstelle FloatCollection
      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 FloatCollection
      Gibt zurück:
      a Stream of the closest java type
    • spliterator

      public FloatSplititerator spliterator()
      A Type Specific Type Splititerator to reduce boxing/unboxing
      Angegeben von:
      spliterator in Schnittstelle Collection<Float>
      Angegeben von:
      spliterator in Schnittstelle FloatCollection
      Angegeben von:
      spliterator in Schnittstelle FloatIterable
      Angegeben von:
      spliterator in Schnittstelle FloatList
      Angegeben von:
      spliterator in Schnittstelle Iterable<Float>
      Angegeben von:
      spliterator in Schnittstelle List<Float>
      Gibt zurück:
      type specific splititerator
    • forEach

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

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

      public <E> void forEach(E input, ObjectFloatConsumer<E> action)
      Beschreibung aus Schnittstelle kopiert: FloatIterable
      Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
      Angegeben von:
      forEach in Schnittstelle FloatIterable
      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(FloatPredicate filter)
      Beschreibung aus Schnittstelle kopiert: FloatIterable
      Helper function to reduce stream usage that allows to filter for any matches.
      Angegeben von:
      matchesAny in Schnittstelle FloatIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      true if any matches were found
    • matchesNone

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

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

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

      public float reduce(float identity, FloatFloatUnaryOperator operator)
      Beschreibung aus Schnittstelle kopiert: FloatIterable
      Performs a reduction on the elements of this Iterable
      Angegeben von:
      reduce in Schnittstelle FloatIterable
      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 float reduce(FloatFloatUnaryOperator operator)
      Beschreibung aus Schnittstelle kopiert: FloatIterable
      Performs a reduction on the elements of this Iterable
      Angegeben von:
      reduce in Schnittstelle FloatIterable
      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(FloatPredicate filter)
      Beschreibung aus Schnittstelle kopiert: FloatIterable
      Helper function to reduce stream usage that allows to count the valid elements.
      Angegeben von:
      count in Schnittstelle FloatIterable
      Parameter:
      filter - that should be applied
      Gibt zurück:
      the amount of Valid Elements
    • set

      public float set(int index, float e)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific set function to reduce (un)boxing
      Angegeben von:
      set in Schnittstelle FloatList
      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<Float> o)
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: FloatList

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

      Angegeben von:
      replaceAll in Schnittstelle FloatList
      Angegeben von:
      replaceAll in Schnittstelle List<Float>
    • replaceFloats

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

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

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

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

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

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

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

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

      public float swapRemove(int index)
      Beschreibung aus Schnittstelle kopiert: FloatList
      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 FloatList
      Parameter:
      index - the index of the element to be removed
      Gibt zurück:
      the element previously at the specified position
    • swapRemoveFloat

      public boolean swapRemoveFloat(float e)
      Beschreibung aus Schnittstelle kopiert: FloatList
      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:
      swapRemoveFloat in Schnittstelle FloatList
      Setzt außer Kraft:
      swapRemoveFloat in Klasse AbstractFloatList
      Parameter:
      e - the element that should be removed
      Gibt zurück:
      true if the element was removed
    • remFloat

      public boolean remFloat(float e)
      Beschreibung aus Klasse kopiert: AbstractFloatCollection
      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:
      remFloat in Schnittstelle FloatCollection
      Setzt außer Kraft:
      remFloat in Klasse AbstractFloatCollection
      Parameter:
      e - the element that is searched for
      Gibt zurück:
      true if the element was found and removed.
      Siehe auch:
    • removeFloat

      public float removeFloat(int index)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A Type-Specific remove function to reduce (un)boxing
      Angegeben von:
      removeFloat in Schnittstelle FloatList
      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: FloatList
      a function to fast remove elements from the list.
      Angegeben von:
      removeElements in Schnittstelle FloatList
      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 float[] extractElements(int from, int to)
      Beschreibung aus Schnittstelle kopiert: FloatList
      A function to fast extract elements out of the list, this removes the elements that were fetched.
      Angegeben von:
      extractElements in Schnittstelle FloatList
      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(FloatBuffer buffer)
      Beschreibung aus Schnittstelle kopiert: FloatList
      Helper function that allows to fastFill a buffer reducing the duplication requirement
      Angegeben von:
      fillBuffer in Schnittstelle FloatList
      Parameter:
      buffer - where the data should be stored in.
    • removeAll

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

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

      public boolean removeAll(FloatCollection c)
      Beschreibung aus Klasse kopiert: AbstractFloatCollection
      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 FloatCollection
      Setzt außer Kraft:
      removeAll in Klasse AbstractFloatCollection
      Parameter:
      c - the elements that should be deleted
      Gibt zurück:
      true if the collection was modified.
      Siehe auch:
    • removeAll

      public boolean removeAll(FloatCollection c, FloatConsumer r)
      Beschreibung aus Schnittstelle kopiert: FloatCollection
      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 FloatCollection
      Setzt außer Kraft:
      removeAll in Klasse AbstractFloatCollection
      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(FloatCollection c)
      Beschreibung aus Klasse kopiert: AbstractFloatCollection
      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 FloatCollection
      Setzt außer Kraft:
      retainAll in Klasse AbstractFloatCollection
      Parameter:
      c - the elements that should be kept
      Gibt zurück:
      true if the collection was modified.
      Siehe auch:
    • retainAll

      public boolean retainAll(FloatCollection c, FloatConsumer r)
      Beschreibung aus Schnittstelle kopiert: FloatCollection
      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 FloatCollection
      Setzt außer Kraft:
      retainAll in Klasse AbstractFloatCollection
      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 Float> filter)
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: FloatCollection

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

      Angegeben von:
      removeIf in Schnittstelle Collection<Float>
      Angegeben von:
      removeIf in Schnittstelle FloatCollection
    • remIf

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

      Removes elements that were selected by the filter

      Angegeben von:
      remIf in Schnittstelle FloatCollection
      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<Float>
      Angegeben von:
      toArray in Schnittstelle List<Float>
      Setzt außer Kraft:
      toArray in Klasse AbstractCollection<Float>
    • toArray

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

      public float[] toFloatArray(float[] a)
      Beschreibung aus Klasse kopiert: AbstractFloatCollection
      A Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.
      Angegeben von:
      toFloatArray in Schnittstelle FloatCollection
      Angegeben von:
      toFloatArray in Schnittstelle FloatPriorityQueue
      Angegeben von:
      toFloatArray in Schnittstelle FloatStack
      Setzt außer Kraft:
      toFloatArray in Klasse AbstractFloatCollection
      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: FloatStack
      Provides the amount of elements currently in the stack
      Angegeben von:
      size in Schnittstelle Collection<Float>
      Angegeben von:
      size in Schnittstelle FloatPriorityQueue
      Angegeben von:
      size in Schnittstelle FloatStack
      Angegeben von:
      size in Schnittstelle ISizeProvider
      Angegeben von:
      size in Schnittstelle List<Float>
      Angegeben von:
      size in Klasse AbstractCollection<Float>
      Gibt zurück:
      the amount of elements that are stored in the PriorityQueue
    • clear

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

      public FloatLinkedList copy()
      Beschreibung aus Schnittstelle kopiert: FloatCollection
      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 FloatCollection
      Angegeben von:
      copy in Schnittstelle FloatList
      Angegeben von:
      copy in Schnittstelle FloatPriorityDequeue
      Angegeben von:
      copy in Schnittstelle FloatPriorityQueue
      Setzt außer Kraft:
      copy in Klasse AbstractFloatList
      Gibt zurück:
      a Shallow Copy of the collection