CDMA client API  3.1.0
CDMA core library
org.gumtree.data.interfaces.IArrayIterator Interface Reference

The IArrayIterator interface permits to run through all values of the associated IArray. More...

Inherits IModelObject.

List of all members.

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 ()

Detailed Description

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);
}

Author:
rodriguez

Member Function Documentation

Get next value as a boolean.

Returns:
true or false

Get next value as a byte.

Returns:
byte value

Get next value as a char.

Returns:
char value

Get the current counter, use for debugging.

Returns:
array of integer

Get next value as a double.

Returns:
double value

Get next value as a float.

Returns:
float value

Get next value as a integer.

Returns:
integer value

Get next value as a long.

Returns:
long value

Get next value as an Object.

Returns:
Object

Get next value as a short.

Returns:
short value

Return true if there are more elements in the iteration.

Returns:
true or false

Get next value as an Object.

Returns:
any Object

Set the value with a boolean.

Parameters:
valtrue or false

Set the value with a byte.

Parameters:
valbyte value

Set the value with a char.

Parameters:
valchar value

Set the value with a given double.

Parameters:
valdouble value

Set the value with a float.

Parameters:
valfloat value

Set the value with a integer.

Parameters:
valinteger value

Set the value with a long.

Parameters:
vallong value

Set the value with a Object.

Parameters:
valany Object

Set the value with a short.

Parameters:
valshort value

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables