org.haphazard.util
Class PriorityList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byjava.util.LinkedList
                  extended byorg.haphazard.util.PriorityList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class PriorityList
extends java.util.LinkedList

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PriorityList()
          Creates a new instance of PriorityList
 
Method Summary
 void add(java.lang.Comparable object)
           
 void add(int priority, java.lang.Object object)
           
 java.lang.Object get(int index)
           
 java.lang.Object getFirst()
           
 java.lang.Object getLast()
           
 java.lang.Object remove(int index)
           
 boolean remove(java.lang.Object o)
           
 java.lang.Object removeFirst()
           
 java.lang.Object removeLast()
           
 
Methods inherited from class java.util.LinkedList
add, addAll, addAll, addFirst, addLast, clear, clone, contains, indexOf, lastIndexOf, listIterator, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PriorityList

public PriorityList()
Creates a new instance of PriorityList

Method Detail

add

public void add(java.lang.Comparable object)

add

public void add(int priority,
                java.lang.Object object)

get

public java.lang.Object get(int index)

getFirst

public java.lang.Object getFirst()

getLast

public java.lang.Object getLast()

remove

public java.lang.Object remove(int index)

remove

public boolean remove(java.lang.Object o)

removeFirst

public java.lang.Object removeFirst()

removeLast

public java.lang.Object removeLast()