public class WeakStack<T> extends AbstractCollection<T>
Constructor and Description |
---|
WeakStack() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
void |
clear() |
boolean |
contains(Object o) |
Iterator<T> |
iterator() |
T |
peek() |
T |
pop() |
boolean |
remove(Object o) |
int |
size() |
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
contains
in class AbstractCollection<T>
@NonNull public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public boolean add(T t)
add
in interface Collection<T>
add
in class AbstractCollection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in class AbstractCollection<T>
public T peek()
public T pop()
public void clear()
clear
in interface Collection<T>
clear
in class AbstractCollection<T>