org.vizzini.util
Interface IStack

All Known Implementing Classes:
LinkedListStack, Stack

public interface IStack

Author:
Jeffrey M. Thompson

Method Summary
 void clear()
          Clear this collection.
 Object get(int index)
          Return the object at the given index.
 boolean isEmpty()
          Return true if this collection is empty.
 Object peek()
          Looks at the object at the top of this stack without removing it from the stack.
 Object pop()
          Removes the object at the top of this stack and returns that object as the value of this function.
 void push(Object object)
          Pushes an item onto the top of this stack.
 int size()
          Return the size of this collection.
 

Method Detail

clear

void clear()
Clear this collection.

Since:
v0.3

get

Object get(int index)
Return the object at the given index.

Since:
v0.3

isEmpty

boolean isEmpty()
Return true if this collection is empty.

Since:
v0.3

peek

Object peek()
Looks at the object at the top of this stack without removing it from the stack.

Since:
v0.3

pop

Object pop()
Removes the object at the top of this stack and returns that object as the value of this function.

Since:
v0.3

push

void push(Object object)
Pushes an item onto the top of this stack.

Since:
v0.3

size

int size()
Return the size of this collection.

Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02