|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.util.ArrayIterator
The ArrayIterator
class iterates over an array of
Object
s.
Constructor Summary | |
ArrayIterator(java.lang.Object[] array)
Constructs an ArrayIterator from an array of Object s. |
|
ArrayIterator(java.lang.Object[] array,
int startIndex)
Constructs an ArrayIterator from an array of Object s and an inclusive beginning index. |
|
ArrayIterator(java.lang.Object[] array,
int startIndex,
int endIndex)
Constructs an ArrayIterator from an array of Object s, 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 Object
s.
array
- the array of Object
s over which to iteratepublic ArrayIterator(java.lang.Object[] array, int startIndex)
ArrayIterator
from an array of Object
s 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 Object
s 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 Object
s, 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 Object
s 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.Iterator
public java.lang.Object next()
Object
from the array.
next
in interface java.util.Iterator
public 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.