|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.util.ArrayIterator
The ArrayIterator class iterates over an array of
Objects.
| Constructor Summary | |
ArrayIterator(java.lang.Object[] array)
Constructs an ArrayIterator from an array of Objects. |
|
ArrayIterator(java.lang.Object[] array,
int startIndex)
Constructs an ArrayIterator from an array of Objects and an inclusive beginning index. |
|
ArrayIterator(java.lang.Object[] array,
int startIndex,
int endIndex)
Constructs an ArrayIterator from an array of Objects, an inclusive start index, and an exclusive end index. |
|
| Method Summary | |
boolean |
hasNext()
Returns true if there are more elements in the
array; otherwise false. |
java.lang.Object |
next()
Returns the next Object from the array. |
void |
remove()
Currently unsupported; always throws an UnsupportedOperationException. |
| 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)
ArrayIterator from an array of Objects.
array - the array of Objects over which to iterate
public ArrayIterator(java.lang.Object[] array,
int startIndex)
ArrayIterator from an array of Objects and an inclusive beginning index. The iterator will return all
elements from the beginning index to the end of the array.
array - the array of Objects in which to iteratestartIndex - the index of the first element to return.
public ArrayIterator(java.lang.Object[] array,
int startIndex,
int endIndex)
ArrayIterator from an array of Objects, an inclusive start index, and an exclusive end index. The
iterator will return all elements from the start index up to (but not
including) the end index.
array - the array of Objects over which to iteratestartIndex - the index of the first element to return.endIndex - the index of the element following the last element to return.| Method Detail |
public boolean hasNext()
true if there are more elements in the
array; otherwise false.
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
Object from the array.
next in interface java.util.Iteratorpublic void remove()
UnsupportedOperationException.
remove in interface java.util.Iterator
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.