mirror of
https://github.com/apache/commons-collections.git
synced 2025-03-03 07:19:21 +00:00
Make LoopingListIterator implement ResettableListIterator
(a binary incompatible change, but on an unreleased class) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@405920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
242b938ec3
commit
9d46da6c8c
@ -697,7 +697,7 @@ public class IteratorUtils {
|
||||
* @throws NullPointerException if the list is null
|
||||
* @since Commons Collections 3.2
|
||||
*/
|
||||
public static ResettableIterator loopingListIterator(List list) {
|
||||
public static ResettableListIterator loopingListIterator(List list) {
|
||||
if (list == null) {
|
||||
throw new NullPointerException("List must not be null");
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import org.apache.commons.collections.ResettableIterator;
|
||||
import org.apache.commons.collections.ResettableListIterator;
|
||||
|
||||
/**
|
||||
* A ListIterator that restarts when it reaches the end or when it
|
||||
@ -38,7 +38,7 @@ import org.apache.commons.collections.ResettableIterator;
|
||||
*
|
||||
* @author Eric Crampton <ccesc@eonomine.com>
|
||||
*/
|
||||
public class LoopingListIterator implements ResettableIterator {
|
||||
public class LoopingListIterator implements ResettableListIterator {
|
||||
|
||||
/** The list to base the iterator on */
|
||||
private List list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user