utils
Class VSPriorityQueue<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.PriorityQueue<T>
              extended by utils.VSPriorityQueue<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Queue<T>

public final class VSPriorityQueue<T>
extends java.util.PriorityQueue<T>

The class VSPriorityQueue. This class is the same like the standard VSPriorityQueue of the Java API. It only overrides the get(int) method.

Author:
Paul C. Buetow
See Also:
Serialized Form

Constructor Summary
VSPriorityQueue()
           
 
Method Summary
 T get(int index)
          Gets the specific element.
 
Methods inherited from class java.util.PriorityQueue
add, clear, comparator, contains, iterator, offer, peek, poll, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, element, remove
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, isEmpty, removeAll, retainAll
 

Constructor Detail

VSPriorityQueue

public VSPriorityQueue()
Method Detail

get

public T get(int index)
Gets the specific element. If the index is out of bounds, it will return null.

Parameters:
index - the index
Returns:
the element, or null, if out of bounds