|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.quick.IteratorFactory
IteratorFactory encapsulates a static method to construct
a Java Iterator from an Object[] array.
This class cannot be instantiated.
| Constructor Summary | |
private |
IteratorFactory()
The private constructor to prevent instantiation. |
| Method Summary | |
static Iterator |
makeIterator(Object[] array)
Returns an Iterator that iterates over the data
in the given array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private IteratorFactory()
| Method Detail |
public static Iterator makeIterator(Object[] array)
Returns an Iterator that iterates over the data
in the given array. To make the iterator independent of the
original array, a shallow copy of the array data is made.
Throws UnsupportedOperationException if the
method remove() is called.
array - the array whose data will be the focus of iteration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||