org.apache.commons.collections.iterators

Class EmptyListIterator

Implemented Interfaces:
Iterator, ListIterator, ResettableIterator, ResettableListIterator

public class EmptyListIterator
extends org.apache.commons.collections.iterators.AbstractEmptyIterator
implements ResettableListIterator

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.

Version:
$Revision: 1.2 $ $Date: 2004/05/26 21:53:18 $
Author:
Stephen Colebourne
Since:
Commons Collections 2.1.1 and 3.1

Field Summary

static ListIterator
INSTANCE
Singleton instance of the iterator.
static ResettableListIterator
RESETTABLE_INSTANCE
Singleton instance of the iterator.

Constructor Summary

EmptyListIterator()
Constructor.

Method Summary

Methods inherited from class org.apache.commons.collections.iterators.AbstractEmptyIterator

add, getKey, getValue, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, reset, set, setValue

Field Details

INSTANCE

public static final ListIterator INSTANCE
Singleton instance of the iterator.
Since:
Commons Collections 2.1.1 and 3.1

RESETTABLE_INSTANCE

public static final ResettableListIterator RESETTABLE_INSTANCE
Singleton instance of the iterator.
Since:
Commons Collections 3.1

Constructor Details

EmptyListIterator

protected EmptyListIterator()
Constructor.

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.