com.kuka.graph.util
Interface PriorityQueue.Handle<T>

Type Parameters:
T - the type of element
Enclosing interface:
PriorityQueue<E>

public static interface PriorityQueue.Handle<T>

Handle to elements in a priority queue for efficient access. Can be used to decrease the priority of an element.


Method Summary
 T get()
          Returns the value of the corresponding element.
 boolean isValid()
          Returns true if this handle is valid.
 

Method Detail

isValid

boolean isValid()
Returns true if this handle is valid. A handle is valid as long as it is an element of this priority queue. When the corresponding value is removed from the queue the handle is invalid.

Returns:
true if this handle is valid

get

T get()
Returns the value of the corresponding element.

Returns:
the value of the element


Copyright © 2019. All rights reserved.