org.jfree.util

Class FastStack

public final class FastStack extends Object implements Serializable, Cloneable

A very simple unsynchronized stack. This one is faster than the java.util-Version.

Author: Thomas Morgner

Constructor Summary
FastStack()
FastStack(int size)
Method Summary
voidclear()
Objectclone()
Objectget(int index)
booleanisEmpty()
Objectpeek()
Objectpop()
voidpush(Object o)
intsize()

Constructor Detail

FastStack

public FastStack()

FastStack

public FastStack(int size)

Method Detail

clear

public void clear()

clone

public Object clone()

get

public Object get(int index)

isEmpty

public boolean isEmpty()

peek

public Object peek()

pop

public Object pop()

push

public void push(Object o)

size

public int size()