Class ArrayStack<T>
java.lang.Object
org.yaml.snakeyaml.util.ArrayStack<T>
- Type Parameters:
T- data to keep in stack
Custom stack
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ArrayStack
public ArrayStack(int initSize) Create- Parameters:
initSize- - book the size
-
-
Method Details
-
push
-
pop
-
isEmpty
public boolean isEmpty()Check- Returns:
- true when it contains nothing
-
clear
public void clear()remove all items in the stack
-