Interface CharPriorityQueue

All Superinterfaces:
PriorityQueue<Character>
All Known Implementing Classes:
AbstractCharPriorityQueue, CharArrayFIFOQueue, CharArrayPriorityQueue, CharHeapPriorityQueue, CharPriorityQueues.SynchronizedPriorityQueue

public interface CharPriorityQueue
extends PriorityQueue<Character>
A type-specific PriorityQueue; provides some additional methods that use polymorphism to avoid (un)boxing.

Additionally, this interface strengthens comparator().

  • Method Summary

    Modifier and Type Method Description
    CharComparator comparator()
    Returns the comparator associated with this priority queue, or null if it uses its elements' natural ordering.
    default Character dequeue()
    Deprecated.
    Please use the corresponding type-specific method instead.
    char dequeueChar()
    Dequeues the first element from the queue.
    void enqueue​(char x)
    Enqueues a new element.
    default void enqueue​(Character x)
    Deprecated.
    Please use the corresponding type-specific method instead.
    default Character first()
    Deprecated.
    Please use the corresponding type-specific method instead.
    char firstChar()
    Returns the first element of the queue.
    default Character last()
    Deprecated.
    Please use the corresponding type-specific method instead.
    default char lastChar()
    Returns the last element of the queue, that is, the element the would be dequeued last (optional operation).

    Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue

    changed, clear, isEmpty, size