Klasse ObjectPriorityQueues.SynchronizedPriorityDequeue<T>

java.lang.Object
speiger.src.collections.objects.utils.ObjectPriorityQueues.SynchronizedPriorityQueue<T>
speiger.src.collections.objects.utils.ObjectPriorityQueues.SynchronizedPriorityDequeue<T>
Typparameter:
T - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Iterable<T>, ObjectIterable<T>, ObjectPriorityDequeue<T>, ObjectPriorityQueue<T>
Umschließende Klasse:
ObjectPriorityQueues

public static class ObjectPriorityQueues.SynchronizedPriorityDequeue<T> extends ObjectPriorityQueues.SynchronizedPriorityQueue<T> implements ObjectPriorityDequeue<T>
Wrapper class for synchronization
  • Methodendetails

    • enqueueFirst

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

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

      public void enqueueAllFirst(Collection<? extends T> c)
      Beschreibung aus Schnittstelle kopiert: ObjectPriorityDequeue
      Method to mass insert elements into first Index of the PriorityDequeue. This method exists to add support for Java Collections to make it more useable
      Angegeben von:
      enqueueAllFirst in Schnittstelle ObjectPriorityDequeue<T>
      Parameter:
      c - the elements that should be inserted from the Collection
    • dequeueLast

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

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