org.apache.commons.collections.iterators

Class EmptyIterator

public class EmptyIterator extends 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.

Since: Commons Collections 2.1.1 and 3.1

Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $

Author: Stephen Colebourne

Field Summary
static IteratorINSTANCE
Singleton instance of the iterator.
static ResettableIteratorRESETTABLE_INSTANCE
Singleton instance of the iterator.
Constructor Summary
protected EmptyIterator()
Constructor.

Field Detail

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 Detail

EmptyIterator

protected EmptyIterator()
Constructor.
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.