Package it.unimi.dsi.fastutil
Class IndirectPriorityQueues
java.lang.Object
it.unimi.dsi.fastutil.IndirectPriorityQueues
A class providing static methods and objects that do useful things with indirect priority queues.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An immutable class representing the empty indirect priority queue.static class
A synchronized wrapper class for indirect priority queues. -
Field Summary
Modifier and TypeFieldDescriptionstatic final IndirectPriorityQueues.EmptyIndirectPriorityQueue
An empty indirect priority queue (immutable). -
Method Summary
Modifier and TypeMethodDescriptionstatic <K> IndirectPriorityQueue
<K> Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue.static <K> IndirectPriorityQueue
<K> synchronize
(IndirectPriorityQueue<K> q, Object sync) Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue, using an assigned object to synchronize.
-
Field Details
-
EMPTY_QUEUE
An empty indirect priority queue (immutable).
-
-
Method Details
-
synchronize
Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue.- Parameters:
q
- the indirect priority queue to be wrapped in a synchronized indirect priority queue.- Returns:
- a synchronized view of the specified indirect priority queue.
-
synchronize
Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue, using an assigned object to synchronize.- Parameters:
q
- the indirect priority queue to be wrapped in a synchronized indirect priority queue.sync
- an object that will be used to synchronize the access to the indirect priority queue.- Returns:
- a synchronized view of the specified indirect priority queue.
-