public class ObjectPriorityQueues
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectPriorityQueues.SynchronizedPriorityDequeue<T>
Wrapper class for synchronization
|
static class |
ObjectPriorityQueues.SynchronizedPriorityQueue<T>
Wrapper class for synchronization
|
| Constructor and Description |
|---|
ObjectPriorityQueues() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectPriorityDequeue<T> |
synchronize(ObjectPriorityDequeue<T> dequeue)
Returns a synchronized PriorityDequeue instance based on the instance given.
|
static <T> ObjectPriorityDequeue<T> |
synchronize(ObjectPriorityDequeue<T> dequeue,
java.lang.Object mutex)
Returns a synchronized PriorityDequeue instance based on the instance given.
|
static <T> ObjectPriorityQueue<T> |
synchronize(ObjectPriorityQueue<T> queue)
Returns a synchronized PriorityQueue instance based on the instance given.
|
static <T> ObjectPriorityQueue<T> |
synchronize(ObjectPriorityQueue<T> queue,
java.lang.Object mutex)
Returns a synchronized PriorityQueue instance based on the instance given.
|
public static <T> ObjectPriorityQueue<T> synchronize(ObjectPriorityQueue<T> queue)
T - the keyType of elements maintained by this Collectionqueue - that should be synchronizedpublic static <T> ObjectPriorityQueue<T> synchronize(ObjectPriorityQueue<T> queue, java.lang.Object mutex)
T - the keyType of elements maintained by this Collectionqueue - that should be synchronizedmutex - is the controller of the synchronization block.public static <T> ObjectPriorityDequeue<T> synchronize(ObjectPriorityDequeue<T> dequeue)
T - the keyType of elements maintained by this Collectiondequeue - that should be synchronizedpublic static <T> ObjectPriorityDequeue<T> synchronize(ObjectPriorityDequeue<T> dequeue, java.lang.Object mutex)
T - the keyType of elements maintained by this Collectiondequeue - that should be synchronizedmutex - is the controller of the synchronization block.