java.lang.Objectcz.muni.fi.pb162.stackexample.StackElement
public class StackElement
This class represents a stack elememnt for NumberStack
| Constructor Summary | |
|---|---|
StackElement(int value,
StackElement below)
|
|
| Method Summary | |
|---|---|
StackElement |
getBelow()
|
int |
getValue()
Used by stack's metod's when poping top-most element and replacing it by second top-most. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackElement(int value,
StackElement below)
value - Value that this StackElement holds.below - @Null StackElement that is below this element in the stack| Method Detail |
|---|
public StackElement getBelow()
StackElement which is under this StackElement in stack or null if this StackElement is bottom-most in the stack.public int getValue()