public final class ShortPriorityQueues
extends java.lang.Object
PriorityQueue| Modifier and Type | Class | Description |
|---|---|---|
static class |
ShortPriorityQueues.SynchronizedPriorityQueue |
A synchronized wrapper class for priority queues.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ShortPriorityQueue |
synchronize(ShortPriorityQueue q) |
Returns a synchronized type-specific priority queue backed by the specified
type-specific priority queue.
|
static ShortPriorityQueue |
synchronize(ShortPriorityQueue q,
java.lang.Object sync) |
Returns a synchronized type-specific priority queue backed by the specified
type-specific priority queue, using an assigned object to synchronize.
|
public static ShortPriorityQueue synchronize(ShortPriorityQueue q)
q - the priority queue to be wrapped in a synchronized priority queue.public static ShortPriorityQueue synchronize(ShortPriorityQueue q, java.lang.Object sync)
q - the priority queue to be wrapped in a synchronized priority queue.sync - an object that will be used to synchronize the access to the
priority queue.