com.thoughtworks.xstream.core.util
Class FastStack

java.lang.Object
  extended by com.thoughtworks.xstream.core.util.FastStack

public final class FastStack
extends Object

An array-based stack implementation.

Author:
Joe Walnes, Jörg Schaible

Constructor Summary
FastStack(int initialCapacity)
           
 
Method Summary
 Object get(int i)
           
 boolean hasStuff()
           
 Object peek()
           
 Object pop()
           
 void popSilently()
           
 Object push(Object value)
           
 Object replace(Object value)
           
 void replaceSilently(Object value)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastStack

public FastStack(int initialCapacity)
Method Detail

push

public Object push(Object value)

popSilently

public void popSilently()

pop

public Object pop()

peek

public Object peek()

replace

public Object replace(Object value)

replaceSilently

public void replaceSilently(Object value)

size

public int size()

hasStuff

public boolean hasStuff()

get

public Object get(int i)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.