public class

EmptyListIterator

extends Object
implements ResettableListIterator
java.lang.Object
   ↳ org.apache.commons.collections.iterators.EmptyListIterator

Class Overview

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.

Summary

Fields
public static final ListIterator INSTANCE Singleton instance of the iterator.
public static final ResettableListIterator RESETTABLE_INSTANCE Singleton instance of the iterator.
Protected Constructors
EmptyListIterator()
Constructor.
Public Methods
void add(Object obj)
Object getKey()
Object getValue()
boolean hasNext()
boolean hasPrevious()
Object next()
int nextIndex()
Object previous()
int previousIndex()
void remove()
void reset()
Resets the iterator back to the position at which the iterator was created.
void set(Object obj)
Object setValue(Object value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator
From interface java.util.ListIterator
From interface org.apache.commons.collections.ResettableIterator
From interface org.apache.commons.collections.ResettableListIterator

Fields

public static final ListIterator INSTANCE

Singleton instance of the iterator.

public static final ResettableListIterator RESETTABLE_INSTANCE

Singleton instance of the iterator.

Protected Constructors

protected EmptyListIterator ()

Constructor.

Public Methods

public void add (Object obj)

public Object getKey ()

public Object getValue ()

public boolean hasNext ()

public boolean hasPrevious ()

public Object next ()

public int nextIndex ()

public Object previous ()

public int previousIndex ()

public void remove ()

public void reset ()

Resets the iterator back to the position at which the iterator was created.

public void set (Object obj)

public Object setValue (Object value)