Klasse ObjectPriorityQueues

java.lang.Object
speiger.src.collections.objects.utils.ObjectPriorityQueues

public class ObjectPriorityQueues extends Object
A Helper class for PriorityQueues
  • Konstruktordetails

    • ObjectPriorityQueues

      public ObjectPriorityQueues()
  • Methodendetails

    • synchronize

      public static <T> ObjectPriorityQueue<T> synchronize(ObjectPriorityQueue<T> queue)
      Returns a synchronized PriorityQueue instance based on the instance given.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      queue - that should be synchronized
      Gibt zurück:
      a synchronized PriorityQueue wrapper.
    • synchronize

      public static <T> ObjectPriorityQueue<T> synchronize(ObjectPriorityQueue<T> queue, Object mutex)
      Returns a synchronized PriorityQueue instance based on the instance given.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      queue - that should be synchronized
      mutex - is the controller of the synchronization block.
      Gibt zurück:
      a synchronized PriorityQueue wrapper.
    • synchronize

      public static <T> ObjectPriorityDequeue<T> synchronize(ObjectPriorityDequeue<T> dequeue)
      Returns a synchronized PriorityDequeue instance based on the instance given.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      dequeue - that should be synchronized
      Gibt zurück:
      a synchronized PriorityDequeue wrapper.
    • synchronize

      public static <T> ObjectPriorityDequeue<T> synchronize(ObjectPriorityDequeue<T> dequeue, Object mutex)
      Returns a synchronized PriorityDequeue instance based on the instance given.
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      dequeue - that should be synchronized
      mutex - is the controller of the synchronization block.
      Gibt zurück:
      a synchronized PriorityDequeue wrapper.