Top Description Fields Constructors Methods
org.apache.commons.collections4.iterators

public Class EmptyListIterator<E>

extends AbstractEmptyIterator<E>
implements ResettableListIterator<E>
Class Inheritance
All Implemented Interfaces
org.apache.commons.collections4.ResettableListIterator, org.apache.commons.collections4.OrderedIterator, java.util.Iterator, org.apache.commons.collections4.ResettableIterator, java.util.ListIterator
Imports
java.util.ListIterator, org.apache.commons.collections4.ResettableListIterator

Provides an implementation of an empty list iterator.

This class provides an implementation of an empty list iterator. This class provides for binary compatibility between Commons Collections 2.1.1 and 3.1 due to issues with IteratorUtils.

Since
2.1.1 and 3.1

Field Summary

Modifier and TypeField and Description
public static final ListIterator<E>
INSTANCE

Singleton instance of the iterator.

public static final ResettableListIterator<E>
RESETTABLE_INSTANCE

Singleton instance of the iterator.

Constructor Summary

AccessConstructor and Description
protected
EmptyListIterator()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public static <
the element type
E
>
ListIterator<E>

Returns:

ListIterator<E>
emptyListIterator
()

Get a typed instance of the iterator.

public static <
the element type
E
>
ResettableListIterator<E>
resettableEmptyListIterator()

Get a typed instance of the iterator.

Inherited from org.apache.commons.collections4.iterators.AbstractEmptyIterator:
addhasNexthasPreviousnextnextIndexpreviouspreviousIndexremoveresetset

Field Detail

INSTANCEback to summary
public static final ListIterator<E> INSTANCE

Singleton instance of the iterator.

Annotations
@SuppressWarnings:rawtypes
Since
2.1.1 and 3.1
RESETTABLE_INSTANCEback to summary
public static final ResettableListIterator<E> RESETTABLE_INSTANCE

Singleton instance of the iterator.

Annotations
@SuppressWarnings:rawtypes
Since
3.1

Constructor Detail

EmptyListIteratorback to summary
protected EmptyListIterator()

Constructor.

Method Detail

emptyListIteratorback to summary
public static <E> ListIterator<E> emptyListIterator()

Get a typed instance of the iterator.

Parameters
<E>
the element type
Returns:ListIterator<E>

ListIterator<E>

resettableEmptyListIteratorback to summary
public static <E> ResettableListIterator<E> resettableEmptyListIterator()

Get a typed instance of the iterator.

Parameters
<E>
the element type
Returns:ResettableListIterator<E>

ResettableListIterator<E>