Class IndirectPriorityQueues.EmptyIndirectPriorityQueue

java.lang.Object
it.unimi.dsi.fastutil.IndirectPriorityQueues.EmptyIndirectPriorityQueue
All Implemented Interfaces:
IndirectPriorityQueue
Enclosing class:
IndirectPriorityQueues

public static class IndirectPriorityQueues.EmptyIndirectPriorityQueue extends Object implements IndirectPriorityQueue
An immutable class representing the empty indirect priority queue.

This class may be useful to implement your own in case you subclass IndirectPriorityQueue.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies this queue that the all elements have changed (optional operation).
    void
    Notifies this queue that the first element has changed (optional operation).
    void
    changed(int i)
    Notifies this queue that the specified element has changed (optional operation).
    void
    Removes all elements from this queue.
    Returns the comparator associated with this queue, or null if it uses its elements' natural ordering.
    boolean
    contains(int index)
    Checks whether a given index belongs to this queue (optional operation).
    int
    Dequeues the first element from this queue.
    void
    enqueue(int i)
    Enqueues a new element.
    int
    Returns the first element of this queue.
    int
    front(int[] a)
    Retrieves the front of this queue in a given array (optional operation).
    boolean
    Checks whether this queue is empty.
    int
    Returns the last element of this queue, that is, the element the would be dequeued last (optional operation).
    boolean
    remove(int i)
    Removes the specified element from this queue (optional operation).
    int
    Returns the number of elements in this queue.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait