|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.util.Iterators.ArraySlice<E>
public static class Iterators.ArraySlice<E>
An Iterators.ArraySlice iterates over a slice of
an array specified by start index and length.
| Constructor Summary | |
|---|---|
Iterators.ArraySlice(E[] objects,
int start,
int length)
Construct an iterator over the specified array of objects that begins at the object at the specified start index and carries through to the other objects. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are more objects
to return. |
E |
next()
Returns the next object for this iterator, throwing an exception if there are no more objects left. |
void |
remove()
Throws an UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iterators.ArraySlice(E[] objects,
int start,
int length)
objects - Array of objects over which to iterate.start - Index of first object to return.| Method Detail |
|---|
public boolean hasNext()
true if there are more objects
to return.
hasNext in interface Iterator<E>true if this iterator has more
elements.public E next()
next in interface Iterator<E>NoSuchElementException - If there are no more
elements to return.public void remove()
UnsupportedOperationException.
remove in interface Iterator<E>UnsupportedOperationException - If called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||