Klasse BooleanPriorityQueues.SynchronizedPriorityDequeue

java.lang.Object
speiger.src.collections.booleans.utils.BooleanPriorityQueues.SynchronizedPriorityQueue
speiger.src.collections.booleans.utils.BooleanPriorityQueues.SynchronizedPriorityDequeue
Alle implementierten Schnittstellen:
Iterable<Boolean>, BooleanIterable, BooleanPriorityDequeue, BooleanPriorityQueue
Umschließende Klasse:
BooleanPriorityQueues

public static class BooleanPriorityQueues.SynchronizedPriorityDequeue extends BooleanPriorityQueues.SynchronizedPriorityQueue implements BooleanPriorityDequeue
Wrapper class for synchronization
  • Methodendetails

    • enqueueFirst

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

      public void enqueueAllFirst(boolean[] e, int offset, int length)
      Beschreibung aus Schnittstelle kopiert: BooleanPriorityDequeue
      Method to mass insert a elements into the first Index of the PriorityDequeue.
      Angegeben von:
      enqueueAllFirst in Schnittstelle BooleanPriorityDequeue
      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(BooleanCollection c)
      Beschreibung aus Schnittstelle kopiert: BooleanPriorityDequeue
      Method to mass insert elements into first Index of the PriorityDequeue.
      Angegeben von:
      enqueueAllFirst in Schnittstelle BooleanPriorityDequeue
      Parameter:
      c - the elements that should be inserted from the Collection
    • dequeueLast

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

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