|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectIteratorFactory
public class IteratorFactory
This class provides a factory that can create an Iterator
for various types
of Java objects. Supported types include:
Iterator
Collection
Map
ResultSet
RowSet
Enumeration
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 |
---|
public static final Iterator EMPTY_ITERATOR
Iterator
.
Constructor Detail |
---|
public IteratorFactory()
Method Detail |
---|
public static final Iterator createIterator(Object object)
Iterator
for the supplied object.
object
- the object to build an iterator from
Iterator
for the object
or null
if the value is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |