org.jikesrvm.compilers.opt.util
Class Queue<T>

java.lang.Object
  extended by org.jikesrvm.compilers.opt.util.Queue<T>
All Implemented Interfaces:
Iterable<T>

public final class Queue<T>
extends Object
implements Iterable<T>


Field Summary
private  LinkedListRVM<T> elements
           
 
Constructor Summary
Queue()
           
Queue(T e)
           
 
Method Summary
 T insert(T e)
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 T remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

private final LinkedListRVM<T> elements
Constructor Detail

Queue

public Queue()

Queue

public Queue(T e)
Method Detail

insert

public T insert(T e)

remove

public T remove()

isEmpty

public boolean isEmpty()

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>