|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.iterator.ArrayIterator
public class ArrayIterator
Array iterator class. Implements the Iterator interface to get an iterator for objects contained in an array.
| Constructor Summary | |
|---|---|
ArrayIterator(java.lang.Object[] array)
Default constructor. |
|
ArrayIterator(java.lang.Object[] array,
int start,
int count)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Checks if there are more array elements. |
java.lang.Object |
next()
Gets the current array element and advances the current position. |
void |
remove()
Always throws an UnsupportedOperationException removal is not supported by this iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIterator(java.lang.Object[] array)
array - Array to iterate
public ArrayIterator(java.lang.Object[] array,
int start,
int count)
array - Array to iteratestart - Index of the first object to returncount - Number of objects to iterate| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||