org.apache.jetspeed.util
Interface Queue

All Superinterfaces:
Collection, Iterable, List

public interface Queue
extends List

Queue interface similar to the java.util.Stack interface

Version:
$Id: Queue.java 516448 2007-03-09 16:25:47Z ate $
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

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


pop

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


peek

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



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