Class GridBoundedPriorityQueue<E>

    • Constructor Detail

      • GridBoundedPriorityQueue

        public GridBoundedPriorityQueue​(int maxCap,
                                        Comparator<? super E> cmp)
        Creates a bounded priority queue with the specified maximum size. At most maxCap elements would be kept in the queue.
        Parameters:
        maxCap - Maximum size of the queue.
        cmp - Comparator that orders the elements.