org.encog.util.datastruct
Class StackInt

java.lang.Object
  extended by org.encog.util.datastruct.StackInt

public class StackInt
extends Object

An integer stack.


Constructor Summary
StackInt(int size)
          Construct a new stack.
 
Method Summary
 int add()
           
 int div()
           
 boolean isEmpty()
           
 int max(int size)
           
 int min(int size)
           
 int mul()
           
 int pop()
           
 void push(int i)
          Push an int onto the stack.
 int size()
           
 int sub()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StackInt

public StackInt(int size)
Construct a new stack.

Parameters:
size - The size of the stack.
Method Detail

isEmpty

public boolean isEmpty()
Returns:
True, if the stack is empty.

push

public void push(int i)
Push an int onto the stack.

Parameters:
i - The value to push onto the stack.

pop

public int pop()

add

public int add()

sub

public int sub()

mul

public int mul()

div

public int div()

size

public int size()

max

public int max(int size)

min

public int min(int size)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.