org.encog.util.datastruct
Class StackInt
java.lang.Object
org.encog.util.datastruct.StackInt
public class StackInt
- extends Object
An integer stack.
Constructor Summary |
StackInt(int size)
Construct a new stack. |
StackInt
public StackInt(int size)
- Construct a new stack.
- Parameters:
size
- The size of the stack.
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.