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 java.lang.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 boolean
isEmpty()
CheckT
pop()
Get the head and remove it from the stackvoid
push(T obj)
Add the element to the head
-
-
-
Field Detail
-
stack
private final java.util.ArrayList<T> stack
-
-