Class EmptyListIterator
java.lang.Object
org.apache.commons.collections.iterators.EmptyListIterator
- All Implemented Interfaces:
Iterator,ListIterator,ResettableIterator,ResettableListIterator
@Deprecated(since="2021-04-30")
public class EmptyListIterator
extends Object
implements ResettableListIterator
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
Provides an implementation of an empty list iterator.
This class provides an implementation of an empty list iterator.
This class provides for binary compatability between Commons Collections
2.1.1 and 3.1 due to issues with IteratorUtils.
- Since:
- Commons Collections 2.1.1 and 3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ListIteratorDeprecated.Singleton instance of the iterator.static final ResettableListIteratorDeprecated.Singleton instance of the iterator. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getKey()Deprecated.getValue()Deprecated.booleanhasNext()Deprecated.booleanDeprecated.next()Deprecated.intDeprecated.previous()Deprecated.intDeprecated.voidremove()Deprecated.voidreset()Deprecated.voidDeprecated.Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, setMethods inherited from interface org.apache.commons.collections.ResettableListIterator
reset
-
Field Details
-
RESETTABLE_INSTANCE
Deprecated.Singleton instance of the iterator.- Since:
- Commons Collections 3.1
-
INSTANCE
Deprecated.Singleton instance of the iterator.- Since:
- Commons Collections 2.1.1 and 3.1
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated. -
next
Deprecated. -
hasPrevious
public boolean hasPrevious()Deprecated. -
previous
Deprecated. -
nextIndex
public int nextIndex()Deprecated. -
previousIndex
public int previousIndex()Deprecated. -
add
Deprecated. -
set
Deprecated. -
remove
public void remove()Deprecated. -
getKey
Deprecated. -
getValue
Deprecated. -
setValue
Deprecated. -
reset
public void reset()Deprecated.
-