Class PriorityQueues.SynchronizedPriorityQueue<K>

java.lang.Object
it.unimi.dsi.fastutil.PriorityQueues.SynchronizedPriorityQueue<K>
All Implemented Interfaces:
PriorityQueue<K>, Serializable
Enclosing class:
PriorityQueues

public static class PriorityQueues.SynchronizedPriorityQueue<K>
extends Object
implements PriorityQueue<K>, Serializable
A synchronized wrapper class for priority queues.
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static long serialVersionUID  
  • Method Summary

    Modifier and Type Method Description
    void changed()
    Notifies the queue that the first element has changed (optional operation).
    void clear()
    Removes all elements from this queue.
    Comparator<? super K> comparator()
    Returns the comparator associated with this queue, or null if it uses its elements' natural ordering.
    K dequeue()
    Dequeues the first element from the queue.
    void enqueue​(K x)
    Enqueues a new element.
    boolean equals​(Object o)  
    K first()
    Returns the first element of the queue.
    int hashCode()  
    boolean isEmpty()
    Checks whether this queue is empty.
    K last()
    Returns the last element of the queue, that is, the element the would be dequeued last (optional operation).
    int size()
    Returns the number of elements in this queue.
    String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait