com.generationjava.collections
Class ReverseListIterator

java.lang.Object
  extended bycom.generationjava.collections.ReverseListIterator
All Implemented Interfaces:
Iterator

public class ReverseListIterator
extends Object
implements Iterator

An iterator that iterates over an array or List, backwards.


Constructor Summary
ReverseListIterator(List list)
          Construct with an List.
ReverseListIterator(Object[] array)
          Construct with an Array.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseListIterator

public ReverseListIterator(Object[] array)
Construct with an Array.


ReverseListIterator

public ReverseListIterator(List list)
Construct with an List.

Method Detail

next

public Object next()
Specified by:
next in interface Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2000-2005 OSJava. All Rights Reserved.