Merging from -r468106:814127 of collections_jdk5_branch - namely where this code was generified; mostly in r738956.

Also see the following revisions:

    ------------------------------------------------------------------------
    r751849 | mbenson | 2009-03-09 14:32:22 -0700 (Mon, 09 Mar 2009) | 1 line
    
    comment
    ------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@815091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-09-15 05:56:29 +00:00
parent 1849be9c79
commit f39a8763ea
1 changed files with 10 additions and 7 deletions

View File

@ -17,18 +17,21 @@
package org.apache.commons.collections;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
* Defines an iterator that operates over an ordered collection.
* Defines an iterator that operates over an ordered container. Subset of {@link ListIterator}.
* <p>
* This iterator allows both forward and reverse iteration through the collection.
*
* This iterator allows both forward and reverse iteration through the container.
*
* @param <E> the type to iterate over
* @since Commons Collections 3.0
* @version $Revision$ $Date$
*
* @author Stephen Colebourne
*/
public interface OrderedIterator extends Iterator {
public interface OrderedIterator<E> extends Iterator<E> {
/**
* Checks to see if there is a previous element that can be iterated to.
@ -38,11 +41,11 @@ public interface OrderedIterator extends Iterator {
boolean hasPrevious();
/**
* Gets the previous element from the collection.
* Gets the previous element from the container.
*
* @return the previous element in the iteration
* @throws java.util.NoSuchElementException if the iteration is finished
* @throws NoSuchElementException if the iteration is finished
*/
Object previous();
E previous();
}