com.phoenixst.collections

Class SimpleStack

public final class SimpleStack extends ArrayList

A simple stack data structure, basically a convenience extension of ArrayList.

Since: 1.0

Version: $Revision: 1.2 $

Author: Ray A. Conner

Constructor Summary
SimpleStack()
Creates a new SimpleStack.
SimpleStack(Collection collection)
Creates a new SimpleStack.
SimpleStack(int initialCapacity)
Creates a new SimpleStack.
Method Summary
Objectpeek()
Return the top element of this SimpleStack.
Objectpop()
Pops an object off of this SimpleStack.
voidpush(Object object)
Pushes an object onto this SimpleStack.

Constructor Detail

SimpleStack

public SimpleStack()
Creates a new SimpleStack.

SimpleStack

public SimpleStack(Collection collection)
Creates a new SimpleStack.

SimpleStack

public SimpleStack(int initialCapacity)
Creates a new SimpleStack.

Method Detail

peek

public Object peek()
Return the top element of this SimpleStack.

pop

public Object pop()
Pops an object off of this SimpleStack.

push

public void push(Object object)
Pushes an object onto this SimpleStack.
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.