org.xmloperator.lambda2.net.model
Interface IntStack

All Known Implementing Classes:
IntStackImpl

public interface IntStack

Stack of integers.


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.
 

Method Detail

isEmpty

public boolean isEmpty()
Returns true if this stack is empty, false elsewhere.

Returns:
true if this stack is empty, false elsewhere.

push

public void push(int value)
Adds a given Object to the top of this stack.

Parameters:
value - an integer.

pop

public int pop()
Pops a value at the top of the stack and returns it.

Returns:
the value at the top of the stack.
Throws:
java.lang.IllegalStateException - if the stack is empty.