|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectIteratorFactory
public class IteratorFactory
IteratorFactory
provides a way to create an
Iterator
for different kinds of objects. The supported types
are:
java.util.Iterator
java.util.Collection
java.util.Map
javax.sql.RowSet
java.util.Enumeration
java.util.Iterator
is supplied, the
Iterator
will simply be returned to the caller.
If an object type not listed above is supplied the object will be wrapped in
an iterator that has a single item, the provided object.
Nested Class Summary | |
---|---|
static class |
IteratorFactory.IteratorPlant
|
Field Summary | |
---|---|
static Iterator |
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 |
---|
public static final Iterator EMPTY_ITERATOR
Constructor Detail |
---|
public IteratorFactory()
Method Detail |
---|
public static final Iterator createIterator(Object object)
Iterator
for the supplied object. If the
passed object is null, this method will return null;
object
- the object to build an iterator from
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |