BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Class AbstractStack

java.lang.Object
  |
  +--brutil.AbstractListing
        |
        +--brutil.AbstractStack
All Implemented Interfaces:
Collection, Stack
Direct Known Subclasses:
ArrayStack, LinkedStack

public abstract class AbstractStack
extends AbstractListing
implements Stack


Fields inherited from class brutil.AbstractListing
list
 
Constructor Summary
AbstractStack()
           
 
Method Summary
 java.lang.Object peek()
          Returns the object at the top of the stack
 java.lang.Object pop()
          Removes and returns the object at the top of the stack
 void push(java.lang.Object elt)
          Inserts the specified object at the top of the stack
 
Methods inherited from class brutil.AbstractListing
clear, isEmpty, listFactory, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface brutil.Collection
clear, isEmpty, size
 

Constructor Detail

AbstractStack

public AbstractStack()
Method Detail

peek

public java.lang.Object peek()
Returns the object at the top of the stack
Specified by:
peek in interface Stack

pop

public java.lang.Object pop()
Removes and returns the object at the top of the stack
Specified by:
pop in interface Stack

push

public void push(java.lang.Object elt)
Inserts the specified object at the top of the stack
Specified by:
push in interface Stack


BRUtil - Making Java a Kinder, Gentler, Place to be.