org.apache.commons.collections.iterators

Class EmptyIterator

Implemented Interfaces:
Iterator, ResettableIterator

public class EmptyIterator
extends org.apache.commons.collections.iterators.AbstractEmptyIterator
implements ResettableIterator

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.

Version:
$Revision: 1.1 $ $Date: 2004/05/22 09:46:39 $
Author:
Stephen Colebourne
Since:
Commons Collections 2.1.1 and 3.1

Field Summary

static Iterator
INSTANCE
Singleton instance of the iterator.
static ResettableIterator
RESETTABLE_INSTANCE
Singleton instance of the iterator.

Constructor Summary

EmptyIterator()
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 Iterator INSTANCE
Singleton instance of the iterator.
Since:
Commons Collections 2.1.1 and 3.1

RESETTABLE_INSTANCE

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

Constructor Details

EmptyIterator

protected EmptyIterator()
Constructor.

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