org.xmloperator.lambda2.net.impl
Class IntStackImpl

java.lang.Object
  extended byorg.xmloperator.lambda2.net.impl.IntStackImpl
All Implemented Interfaces:
IntStack

public class IntStackImpl
extends java.lang.Object
implements IntStack

IntStack implementation.


Constructor Summary
IntStackImpl()
           
IntStackImpl(int initialCapacity)
           
 
Method Summary
 boolean isEmpty()
          Returns true if this stack is empty, false elsewhere.
 int pop()
          Pops a value at the top of the stack and returns it.
 void push(int value)
          Adds a given Object to the top of this stack.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntStackImpl

public IntStackImpl()

IntStackImpl

public IntStackImpl(int initialCapacity)
Method Detail

isEmpty

public boolean isEmpty()
Description copied from interface: IntStack
Returns true if this stack is empty, false elsewhere.

Specified by:
isEmpty in interface IntStack
Returns:
true if this stack is empty, false elsewhere.

push

public void push(int value)
Description copied from interface: IntStack
Adds a given Object to the top of this stack.

Specified by:
push in interface IntStack
Parameters:
value - an integer.

pop

public int pop()
Description copied from interface: IntStack
Pops a value at the top of the stack and returns it.

Specified by:
pop in interface IntStack
Returns:
the value at the top of the stack.