org.apache.jetspeed.util
Interface Queue

All Superinterfaces:
Collection, List

public interface Queue
extends List

Queue interface similar to the java.util.Stack interface

Version:
$Id: Queue.java 279461 2005-09-07 23:40:16Z taylor $
Author:
Rapha?l Luta

Method Summary
 Object peek()
          Gets the first object in the queue without removing it from the queue
 Object pop()
          Gets the first object in the queue and remove it from the queue
 void push(Object obj)
          Adds a new object into the queue
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

push

public void push(Object obj)
Adds a new object into the queue


pop

public Object pop()
Gets the first object in the queue and remove it from the queue


peek

public Object peek()
Gets the first object in the queue without removing it from the queue



Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.