Schnittstelle FloatPriorityDequeue

Alle Superschnittstellen:
FloatIterable, FloatPriorityQueue, Iterable<Float>
Alle bekannten Implementierungsklassen:
FloatArrayFIFOQueue, FloatLinkedList, FloatPriorityQueues.SynchronizedPriorityDequeue

public interface FloatPriorityDequeue extends FloatPriorityQueue
A Type Speciifc PriorityDeque or Dequeue interface to allow implementations like FIFO queues.
  • Methodendetails

    • enqueueFirst

      void enqueueFirst(float e)
      Method to insert a element into the first Index instead of the last.
      Parameter:
      e - the element that should be inserted into the first place
    • enqueueAllFirst

      default void enqueueAllFirst(float... e)
      Method to mass insert a elements into the first Index of the PriorityDequeue.
      Parameter:
      e - the elements that should be inserted
    • enqueueAllFirst

      default void enqueueAllFirst(float[] e, int length)
      Method to mass insert a elements into the first Index of the PriorityDequeue.
      Parameter:
      e - the elements that should be inserted
      length - the amount of elements that should be inserted
    • enqueueAllFirst

      default void enqueueAllFirst(float[] e, int offset, int length)
      Method to mass insert a elements into the first Index of the PriorityDequeue.
      Parameter:
      e - the elements that should be inserted
      offset - the offset where in the array should be started
      length - the amount of elements that should be inserted
    • enqueueAllFirst

      default void enqueueAllFirst(FloatCollection c)
      Method to mass insert elements into first Index of the PriorityDequeue.
      Parameter:
      c - the elements that should be inserted from the Collection
    • dequeueLast

      float dequeueLast()
      A Method to remove a element from the last place instead of the first
      Gibt zurück:
      the last element inserted
      Löst aus:
      NoSuchElementException - if no element is in the deque
    • last

      default float last()
      Peeking function for the last element
      Gibt zurück:
      the Last Element within the dequeue without deleting it
    • synchronizeQueue

      default FloatPriorityDequeue synchronizeQueue()
      Creates a Wrapped PriorityDequeue that is Synchronized
      Angegeben von:
      synchronizeQueue in Schnittstelle FloatPriorityQueue
      Gibt zurück:
      a new PriorityDequeue that is synchronized
      Siehe auch:
    • synchronizeQueue

      default FloatPriorityDequeue synchronizeQueue(Object mutex)
      Creates a Wrapped PriorityDequeue that is Synchronized
      Angegeben von:
      synchronizeQueue in Schnittstelle FloatPriorityQueue
      Parameter:
      mutex - is the controller of the synchronization block
      Gibt zurück:
      a new PriorityDequeue Wrapper that is synchronized
      Siehe auch:
    • copy

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