it.unimi.dsi.fastutil.floats
Class FloatPriorityQueues

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.FloatPriorityQueues

public class FloatPriorityQueues
extends java.lang.Object

A class providing static methods and objects that do useful things with type-specific priority queues.

See Also:
PriorityQueue

Nested Class Summary
static class FloatPriorityQueues.SynchronizedPriorityQueue
          A synchronized wrapper class for priority queues.
 
Method Summary
static FloatPriorityQueue synchronize(FloatPriorityQueue q)
          Returns a synchronized type-specific priority queue backed by the specified type-specific priority queue.
static FloatPriorityQueue synchronize(FloatPriorityQueue 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

synchronize

public static FloatPriorityQueue synchronize(FloatPriorityQueue q)
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

public static FloatPriorityQueue synchronize(FloatPriorityQueue 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.

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.