Class PriorityQueue
java.lang.Object
org.locationtech.jts.util.PriorityQueue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Comparable x) Deprecated.Insert into the priority queue.voidclear()Deprecated.Make the priority queue logically empty.booleanisEmpty()Deprecated.Test if the priority queue is logically empty.peek()Deprecated.poll()Deprecated.Remove the smallest item from the priority queue.intsize()Deprecated.Returns size.
-
Constructor Details
-
PriorityQueue
public PriorityQueue()Deprecated.Creates a new empty priority queue
-
-
Method Details
-
add
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
Deprecated.Remove the smallest item from the priority queue.- Returns:
- the smallest item, or null if empty
-
peek
Deprecated.
-