Package gw.util
Class Stack<T>
- java.lang.Object
-
- gw.util.Stack<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(T obj)booleanequals(Object o)Tget(int i)TgetBase()inthashCode()intindexOf(T o)voidinsert(T item, int iPos)booleanisEmpty()Iterator<T>iterator()Tpeek()Tpop()booleanpush(T item)intsize()List<T>toList()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
push
public boolean push(T item)
-
insert
public void insert(T item, int iPos)
-
pop
public T pop()
-
peek
public T peek()
-
getBase
public T getBase()
-
contains
public boolean contains(T obj)
-
get
public T get(int i)
-
indexOf
public int indexOf(T o)
-
clear
public void clear()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
-