Package it.unimi.dsi.fastutil.longs
Class LongPriorityQueues
java.lang.Object
it.unimi.dsi.fastutil.longs.LongPriorityQueues
public final class LongPriorityQueues extends Object
A class providing static methods and objects that do useful things with
type-specific priority queues.
- See Also:
PriorityQueue
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLongPriorityQueues.SynchronizedPriorityQueueA synchronized wrapper class for priority queues. -
Method Summary
Modifier and Type Method Description static LongPriorityQueuesynchronize(LongPriorityQueue q)Returns a synchronized type-specific priority queue backed by the specified type-specific priority queue.static LongPriorityQueuesynchronize(LongPriorityQueue q, Object sync)Returns a synchronized type-specific priority queue backed by the specified type-specific priority queue, using an assigned object to synchronize.
-
Method Details
-
synchronize
Returns a synchronized type-specific priority queue backed by the specified type-specific priority queue.- Parameters:
q- the priority queue to be wrapped in a synchronized priority queue.- Returns:
- a synchronized view of the specified priority queue.
-
synchronize
Returns a synchronized type-specific priority queue backed by the specified type-specific priority queue, using an assigned object to synchronize.- Parameters:
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.- Returns:
- a synchronized view of the specified priority queue.
-