|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.lang.XFloatArrayIterator
public class XFloatArrayIterator
An XFloatIterator
that wraps a float array.
Constructor Summary | |
---|---|
XFloatArrayIterator(float[] array)
Constructs a new array iterator. |
|
XFloatArrayIterator(float[] array,
int offset,
int length)
Constructs a new array iterator. |
Method Summary | |
---|---|
float[] |
array()
The array backing this iterator. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
int |
length()
Gets the length of the iterator (the number of elements it returns starting with the offset). |
float |
next()
Returns the next element in the iteration. |
int |
offset()
Gets the offset into the backing array at which this iterator starts. |
void |
remove()
Remove is not supported for array iterators. |
XFloatIterator |
toFirst()
Resets the iterator to the beginning. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XFloatArrayIterator(float[] array)
array
- The array to iterate.public XFloatArrayIterator(float[] array, int offset, int length)
array
- The backing array.offset
- The offset into the array.length
- The length the number of elements including the offset to iterate.Method Detail |
---|
public final float[] array()
public final int offset()
public final int length()
public final boolean hasNext()
XFloatIterator
hasNext
in interface XFloatIterator
public final float next()
XFloatIterator
next
in interface XFloatIterator
public final void remove()
remove
in interface XFloatIterator
UnsupportedOperationException
- If called.public final XFloatIterator toFirst()
XFloatIterator
toFirst
in interface XFloatIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |