org.apache.beehive.netui.util.iterator
Class IteratorFactory

Object
  extended by IteratorFactory

public class IteratorFactory
extends Object

This class provides a factory that can create an Iterator for various types of Java objects. Supported types include:

If an object type not listed above is supplied the object will be wrapped in an iterator that contains only the provided object.


Nested Class Summary
static class IteratorFactory.IteratorPlant
           
 
Field Summary
static Iterator EMPTY_ITERATOR
          Convenience field for accessing an empty Iterator.
 
Constructor Summary
IteratorFactory()
           
 
Method Summary
static Iterator createIterator(Object object)
          Create a new Iterator for the supplied object.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ITERATOR

public static final Iterator EMPTY_ITERATOR
Convenience field for accessing an empty Iterator.

Constructor Detail

IteratorFactory

public IteratorFactory()
Method Detail

createIterator

public static final Iterator createIterator(Object object)
Create a new Iterator for the supplied object.

Parameters:
object - the object to build an iterator from
Returns:
an Iterator for the object or null if the value is null.