JML

java.util
Interface Deque

All Superinterfaces:
Collection, Queue
All Known Implementing Classes:
LinkedList

public interface Deque
extends Queue


Method Summary
 boolean add(Object)
           
 void addFirst(Object)
           
 void addLast(Object)
           
 boolean contains(Object)
           
 Iterator descendingIterator()
           
 Object element()
           
 Object getFirst()
           
 Object getLast()
           
 Iterator iterator()
           
 boolean offer(Object)
           
 boolean offerFirst(Object)
           
 boolean offerLast(Object)
           
 Object peek()
           
 Object peekFirst()
           
 Object peekLast()
           
 Object poll()
           
 Object pollFirst()
           
 Object pollLast()
           
 Object pop()
           
 void push(Object)
           
 Object remove()
           
 boolean remove(Object)
           
 Object removeFirst()
           
 boolean removeFirstOccurrence(Object)
           
 Object removeLast()
           
 boolean removeLastOccurrence(Object)
           
 int size()
           
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Method Detail

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

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.