org.geotools.graph.util
Class Stack

Object
  extended by Stack
All Implemented Interfaces:
Iterable, Collection, Queue

public class Stack
extends Object
implements Collection, Queue


Nested Class Summary
 class Stack.StackIterator
           
 
Constructor Summary
Stack()
           
Stack(int size)
           
 
Method Summary
 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)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Collection
equals, hashCode
 

Constructor Detail

Stack

public Stack()

Stack

public Stack(int size)
Method Detail

push

public void push(Object element)

pushAll

public void pushAll(Collection elements)

pop

public Object pop()

size

public int size()
Specified by:
size in interface Collection

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface Queue

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface Queue

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

add

public boolean add(Object o)
Specified by:
add in interface Collection

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection

enq

public void enq(Object object)
Specified by:
enq in interface Queue

deq

public Object deq()
Specified by:
deq in interface Queue


Copyright © 1996-2009 Geotools. All Rights Reserved.