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 void
clear()
boolean
contains(T obj)
boolean
equals(Object o)
T
get(int i)
T
getBase()
int
hashCode()
int
indexOf(T o)
void
insert(T item, int iPos)
boolean
isEmpty()
Iterator<T>
iterator()
T
peek()
T
pop()
boolean
push(T item)
int
size()
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()
-
-