|
CDMA engine API
3.1.0
CDMA core library
|
The IArrayIterator interface permits to run through all values of the associated IArray. More...
Inherits IModelObject.
Public Member Functions | |
| boolean | hasNext () |
| double | getDoubleNext () |
| void | setDouble (double val) |
| float | getFloatNext () |
| void | setFloat (float val) |
| long | getLongNext () |
| void | setLong (long val) |
| int | getIntNext () |
| void | setInt (int val) |
| short | getShortNext () |
| void | setShort (short val) |
| byte | getByteNext () |
| void | setByte (byte val) |
| char | getCharNext () |
| void | setChar (char val) |
| boolean | getBooleanNext () |
| void | setBoolean (boolean val) |
| Object | getObjectNext () |
| void | setObject (Object val) |
| Object | next () |
| int[] | getCounter () |
The IArrayIterator interface permits to run through all values of the associated IArray.
This interface allows the user to iterate over a IArray's values. The way the IArray is traveled depends on how it has been defined.
When initialized, the iterator should be invalid: starting at index -1. It means that hasNext() returns true and the first element is accessed using get*Next(). The set methods replace the last element returned by next with the specified operation.
To rewrite all values of a IArray, using an iterator, should be done as follow:
short value = 0;
IArrayIterator iter = my_array.getIterator();
while( iter.hasNext() ) {
iter.getShortNext();
iter.setShort(value);
}
Get next value as a boolean.
Get next value as a byte.
Get next value as a char.
Get the current counter, use for debugging.
Get next value as a double.
Get next value as a float.
Get next value as a integer.
Get next value as a long.
Get next value as an Object.
Get next value as a short.
Return true if there are more elements in the iteration.
Get next value as an Object.
| void org.gumtree.data.interfaces.IArrayIterator.setBoolean | ( | boolean | val | ) |
Set the value with a boolean.
| val | true or false |
| void org.gumtree.data.interfaces.IArrayIterator.setByte | ( | byte | val | ) |
Set the value with a byte.
| val | byte value |
| void org.gumtree.data.interfaces.IArrayIterator.setChar | ( | char | val | ) |
Set the value with a char.
| val | char value |
| void org.gumtree.data.interfaces.IArrayIterator.setDouble | ( | double | val | ) |
Set the value with a given double.
| val | double value |
| void org.gumtree.data.interfaces.IArrayIterator.setFloat | ( | float | val | ) |
Set the value with a float.
| val | float value |
| void org.gumtree.data.interfaces.IArrayIterator.setInt | ( | int | val | ) |
Set the value with a integer.
| val | integer value |
| void org.gumtree.data.interfaces.IArrayIterator.setLong | ( | long | val | ) |
Set the value with a long.
| val | long value |
| void org.gumtree.data.interfaces.IArrayIterator.setObject | ( | Object | val | ) |
Set the value with a Object.
| val | any Object |
| void org.gumtree.data.interfaces.IArrayIterator.setShort | ( | short | val | ) |
Set the value with a short.
| val | short value |