Package org.locationtech.jts.util
Class PriorityQueue
- java.lang.Object
-
- org.locationtech.jts.util.PriorityQueue
-
public class PriorityQueue extends java.lang.Object
Deprecated.A priority queue over a set ofComparable
objects.- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description PriorityQueue()
Deprecated.Creates a new empty priority queue
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(java.lang.Comparable x)
Deprecated.Insert into the priority queue.void
clear()
Deprecated.Make the priority queue logically empty.boolean
isEmpty()
Deprecated.Test if the priority queue is logically empty.java.lang.Object
peek()
Deprecated.java.lang.Object
poll()
Deprecated.Remove the smallest item from the priority queue.int
size()
Deprecated.Returns size.
-
-
-
Method Detail
-
add
public void add(java.lang.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 java.lang.Object poll()
Deprecated.Remove the smallest item from the priority queue.- Returns:
- the smallest item, or null if empty
-
peek
public java.lang.Object peek()
Deprecated.
-
-