public class

EmptyOrderedIterator

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

Class Overview

Provides an implementation of an empty ordered iterator.

Summary

Fields
public static final OrderedIterator INSTANCE Singleton instance of the iterator.
Protected Constructors
EmptyOrderedIterator()
Constructor.
Public Methods
void add(Object obj)
Object getKey()
Object getValue()
boolean hasNext()
boolean hasPrevious()
Checks to see if there is a previous element that can be iterated to.
Object next()
int nextIndex()
Object previous()
Gets the previous element from the collection.
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.OrderedIterator
From interface org.apache.commons.collections.ResettableIterator

Fields

public static final OrderedIterator INSTANCE

Singleton instance of the iterator.

Protected Constructors

protected EmptyOrderedIterator ()

Constructor.

Public Methods

public void add (Object obj)

public Object getKey ()

public Object getValue ()

public boolean hasNext ()

public boolean hasPrevious ()

Checks to see if there is a previous element that can be iterated to.

Returns
  • true if the iterator has a previous element

public Object next ()

public int nextIndex ()

public Object previous ()

Gets the previous element from the collection.

Returns
  • the previous element in the iteration

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)