java.util
Interface Deque
- All Superinterfaces:
- Collection, Queue
- All Known Implementing Classes:
- LinkedList
- public interface Deque
- extends Queue
addFirst
public void addFirst(Object)
addLast
public void addLast(Object)
offerFirst
public boolean offerFirst(Object)
offerLast
public boolean offerLast(Object)
removeFirst
public Object removeFirst()
removeLast
public Object removeLast()
pollFirst
public Object pollFirst()
pollLast
public Object pollLast()
getFirst
public Object getFirst()
getLast
public Object getLast()
peekFirst
public Object peekFirst()
peekLast
public Object peekLast()
removeFirstOccurrence
public boolean removeFirstOccurrence(Object)
removeLastOccurrence
public boolean removeLastOccurrence(Object)
add
public boolean add(Object)
- Specified by:
add in interface Queue
offer
public boolean offer(Object)
- Specified by:
offer in interface Queue
remove
public Object remove()
- Specified by:
remove in interface Queue
poll
public Object poll()
- Specified by:
poll in interface Queue
element
public Object element()
- Specified by:
element in interface Queue
peek
public Object peek()
- Specified by:
peek in interface Queue
push
public void push(Object)
pop
public Object pop()
remove
public boolean remove(Object)
- Specified by:
remove in interface Collection
contains
public boolean contains(Object)
- Specified by:
contains in interface Collection
size
public int size()
- Specified by:
size in interface Collection
iterator
public Iterator iterator()
- Specified by:
iterator in interface Collection
descendingIterator
public Iterator descendingIterator()
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.