public class Stack extends Object implements Collection, Queue
Modifier and Type | Class and Description |
---|---|
class |
Stack.StackIterator |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
deq() |
void |
enq(Object object) |
boolean |
isEmpty() |
Iterator |
iterator() |
Object |
pop() |
void |
push(Object element) |
void |
pushAll(Collection elements) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public void push(Object element)
public void pushAll(Collection elements)
public Object pop()
public int size()
size
in interface Collection
public void clear()
clear
in interface Collection
clear
in interface Queue
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Queue
public Object[] toArray()
toArray
in interface Collection
public boolean add(Object o)
add
in interface Collection
public boolean contains(Object o)
contains
in interface Collection
public boolean remove(Object o)
remove
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
Copyright © 1996–2019 Geotools. All rights reserved.