Implement new Resetable Iterator interfaces

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-01-15 21:52:39 +00:00
parent d8af72c544
commit c08ffff306
3 changed files with 10 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/LoopingIterator.java,v 1.2 2003/01/10 20:21:25 rwaldhoff Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/LoopingIterator.java,v 1.3 2003/01/15 21:52:39 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -72,12 +72,13 @@ import java.util.NoSuchElementException;
* implementations will throw a ConcurrentModificationException.
*
* @since Commons Collections 2.2
* @version $Revision: 1.2 $ $Date: 2003/01/10 20:21:25 $
* @version $Revision: 1.3 $ $Date: 2003/01/15 21:52:39 $
*
* @author <a href="mailto:joncrlsn@users.sf.net">Jonathan Carlson</a>
* @author Stephen Colebourne
*/
public class LoopingIterator implements Iterator {
public class LoopingIterator implements ResetableIterator {
/** The collection to base the iterator on */
private Collection collection;
/** The current iterator */

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java,v 1.2 2003/01/10 20:21:25 rwaldhoff Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java,v 1.3 2003/01/15 21:51:57 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -70,7 +70,7 @@ import java.util.NoSuchElementException;
* back to the start if required.
*
* @since Commons Collections 2.2
* @version $Revision: 1.2 $ $Date: 2003/01/10 20:21:25 $
* @version $Revision: 1.3 $ $Date: 2003/01/15 21:51:57 $
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
* @author Mauricio S. Moura
@ -78,7 +78,7 @@ import java.util.NoSuchElementException;
* @author <a href="mailto:neilotoole@users.sourceforge.net">Neil O'Toole</a>
* @author Stephen Colebourne
*/
public class ObjectArrayIterator implements Iterator {
public class ObjectArrayIterator implements ResetableIterator {
/** The array */
protected Object[] array = null;

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java,v 1.2 2003/01/10 20:21:25 rwaldhoff Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java,v 1.3 2003/01/15 21:51:57 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -74,12 +74,12 @@ import java.util.NoSuchElementException;
* @see java.util.ListIterator
*
* @since Commons Collections 2.2
* @version $Revision: 1.2 $ $Date: 2003/01/10 20:21:25 $
* @version $Revision: 1.3 $ $Date: 2003/01/15 21:51:57 $
*
* @author <a href="mailto:neilotoole@users.sourceforge.net">Neil O'Toole</a>
* @author Stephen Colebourne
*/
public class ObjectArrayListIterator extends ObjectArrayIterator implements ListIterator {
public class ObjectArrayListIterator extends ObjectArrayIterator implements ResetableListIterator {
/**
* Holds the index of the last item returned by a call to <code>next()</code>