Klasse CharPriorityQueues.SynchronizedPriorityDequeue

java.lang.Object
speiger.src.collections.chars.utils.CharPriorityQueues.SynchronizedPriorityQueue
speiger.src.collections.chars.utils.CharPriorityQueues.SynchronizedPriorityDequeue
Alle implementierten Schnittstellen:
Iterable<Character>, CharIterable, CharPriorityDequeue, CharPriorityQueue
Umschließende Klasse:
CharPriorityQueues

public static class CharPriorityQueues.SynchronizedPriorityDequeue extends CharPriorityQueues.SynchronizedPriorityQueue implements CharPriorityDequeue
Wrapper class for synchronization
  • Methodendetails

    • enqueueFirst

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

      public void enqueueAllFirst(char[] e, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: CharPriorityDequeue
      Method to mass insert a elements into the first Index of the PriorityDequeue.
      Angegeben von:
      enqueueAllFirst in Schnittstelle CharPriorityDequeue
      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

      public void enqueueAllFirst(CharCollection c)
      Beschreibung aus Schnittstelle kopiert: CharPriorityDequeue
      Method to mass insert elements into first Index of the PriorityDequeue.
      Angegeben von:
      enqueueAllFirst in Schnittstelle CharPriorityDequeue
      Parameter:
      c - the elements that should be inserted from the Collection
    • dequeueLast

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

      public CharPriorityDequeue copy()
      Beschreibung aus Schnittstelle kopiert: CharPriorityQueue
      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 CharPriorityDequeue
      Angegeben von:
      copy in Schnittstelle CharPriorityQueue
      Setzt außer Kraft:
      copy in Klasse CharPriorityQueues.SynchronizedPriorityQueue
      Gibt zurück:
      a Shallow Copy of the PriorityQueue