org.encog.util.datastruct
Class StackInt
- java.lang.Object
-
- org.encog.util.datastruct.StackInt
-
public class StackInt extends java.lang.ObjectAn integer stack.
-
-
Constructor Summary
Constructors Constructor and Description StackInt(int size)Construct a new stack.
-
-
-
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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG