Class PriorityQueue

java.lang.Object
org.locationtech.jts.util.PriorityQueue

public class PriorityQueue extends Object
Deprecated.
A priority queue over a set of Comparable objects.
Author:
Martin Davis
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new empty priority queue
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Insert into the priority queue.
    void
    Deprecated.
    Make the priority queue logically empty.
    boolean
    Deprecated.
    Test if the priority queue is logically empty.
    Deprecated.
     
    Deprecated.
    Remove the smallest item from the priority queue.
    int
    Deprecated.
    Returns size.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PriorityQueue

      public PriorityQueue()
      Deprecated.
      Creates a new empty priority queue
  • Method Details

    • add

      public void add(Comparable x)
      Deprecated.
      Insert into the priority queue. Duplicates are allowed.
      Parameters:
      x - the item to insert.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Test if the priority queue is logically empty.
      Returns:
      true if empty, false otherwise.
    • size

      public int size()
      Deprecated.
      Returns size.
      Returns:
      current size.
    • clear

      public void clear()
      Deprecated.
      Make the priority queue logically empty.
    • poll

      public Object poll()
      Deprecated.
      Remove the smallest item from the priority queue.
      Returns:
      the smallest item, or null if empty
    • peek

      public Object peek()
      Deprecated.