org.apache.commons.collections
Class SingletonIterator

java.lang.Object
  |
  +--org.apache.commons.collections.iterators.SingletonIterator
        |
        +--org.apache.commons.collections.SingletonIterator
All Implemented Interfaces:
java.util.Iterator

Deprecated. this class has been moved to the iterators subpackage

public class SingletonIterator
extends SingletonIterator

SingletonIterator is an Iterator over a single object instance.

Since:
2.0
Version:
$Revision: 1.8.2.1 $
Author:
James Strachan

Constructor Summary
SingletonIterator(java.lang.Object object)
          Deprecated. Constructs a new SingletonIterator.
 
Methods inherited from class org.apache.commons.collections.iterators.SingletonIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonIterator

public SingletonIterator(java.lang.Object object)
Deprecated. 
Constructs a new SingletonIterator.

Parameters:
object - the single object to return from the iterator


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.