|
SoftNet-Consult Java Utility Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softnetConsult.utils.collections.ArrayIteratorFloat
public class ArrayIteratorFloat
Implements an iterator over a float array.
This product includes software developed by the
SoftNet-Consult Java Utility Library project and its contributors.
(http://java-tools.sourceforge.net)
Copyright (c) 2007-2008 SoftNet-Consult.
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.
File: AttayIterator.java
Library API version: "2.02"
Java compliance version: "1.5"
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:
1. Redistributions of source code must retain the above
acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the
SoftNet-Consult Java Utility Library project, the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived
software must display the following acknowledgement:
This product includes software developed by the SoftNet-Consult Java Utility Library
project and its contributors.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Field Summary | |
---|---|
private float[] |
array
Array being iterated. |
private int |
cursor
Cursor into the array. |
Constructor Summary | |
---|---|
ArrayIteratorFloat(float[] array)
Creates an array iterator over the specified array. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if this iteration has more elements. |
java.lang.Float |
next()
Returns the next element in this iteration converted to the appropriate wrapper type. |
float |
nextValue()
Returns the next element in this iteration. |
void |
remove()
Removing of array elements is obviously not supported. |
void |
restart()
Resets the internal cursor of this iterator to point to the start of the unederlying array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float[] array
private int cursor
Constructor Detail |
---|
public ArrayIteratorFloat(float[] array)
array
- Array to be iterated.Method Detail |
---|
public boolean hasNext()
true
if this iteration has more elements.
hasNext
in interface java.util.Iterator<java.lang.Float>
true
if next()
would return an element rather than throwing an exception,
false
otherwise.public float nextValue()
java.util.NoSuchElementException
- If this iteration has no more elements.public java.lang.Float next()
next
in interface java.util.Iterator<java.lang.Float>
java.util.NoSuchElementException
- If this iteration has no more elements.public void remove()
remove
in interface java.util.Iterator<java.lang.Float>
java.lang.UnsupportedOperationException
- is always thrown.public void restart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |