Constructor and Description |
---|
Stack() |
Stack(ArrayList<T> list) |
Stack(Stack<T> source) |
Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean push(T item)
public void insert(T item, int iPos)
public T pop()
public T peek()
public T getBase()
public boolean contains(T obj)
public T get(int i)
public int indexOf(T o)
public void clear()
public int size()
public boolean isEmpty()
Copyright © 2024. All rights reserved.