org.apache.jetspeed.util
Interface Queue

All Superinterfaces:
java.util.Collection, java.lang.Iterable, java.util.List

public interface Queue
extends java.util.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
 java.lang.Object peek()
          Gets the first object in the queue without removing it from the queue
 java.lang.Object pop()
          Gets the first object in the queue and remove it from the queue
 void push(java.lang.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(java.lang.Object obj)
Adds a new object into the queue


pop

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


peek

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



Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.