public class

EmptyIterator

extends Object
implements ResettableIterator
java.lang.Object
   ↳ org.apache.commons.collections.iterators.EmptyIterator

Class Overview

Provides an implementation of an empty iterator.

This class provides an implementation of an empty 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 Iterator INSTANCE Singleton instance of the iterator.
public static final ResettableIterator RESETTABLE_INSTANCE Singleton instance of the iterator.
Protected Constructors
EmptyIterator()
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 org.apache.commons.collections.ResettableIterator

Fields

public static final Iterator INSTANCE

Singleton instance of the iterator.

public static final ResettableIterator RESETTABLE_INSTANCE

Singleton instance of the iterator.

Protected Constructors

protected EmptyIterator ()

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)