Class IndirectPriorityQueues.SynchronizedIndirectPriorityQueue<K>

    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void allChanged()
      Notifies this queue that the all elements have changed (optional operation).
      void changed()
      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 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.
      boolean contains​(int index)
      Checks whether a given index belongs to this queue (optional operation).
      int dequeue()
      Dequeues the first element from this queue.
      void enqueue​(int x)
      Enqueues a new element.
      int first()
      Returns the first element of this queue.
      int front​(int[] a)
      Retrieves the front of this queue in a given array (optional operation).
      boolean isEmpty()
      Checks whether this queue is empty.
      int last()
      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 size()
      Returns the number of elements in this queue.