Package org.snakeyaml.engine.v2.common
Class ArrayStack<T>
- java.lang.Object
-
- org.snakeyaml.engine.v2.common.ArrayStack<T>
-
- Type Parameters:
T- data to keep in stack
public class ArrayStack<T> extends Object
Custom stack
-
-
Constructor Summary
Constructors Constructor Description ArrayStack(int initSize)Create empty stack
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()CheckTpop()Get the head and remove it from the stackvoidpush(T obj)Add the element to the head
-