public interface DoubleColumnIterator
DoubleColumnMap object.
Typical usage of this class is as follows:
DoubleColumnIterator iter = someDoubleColumnMap.iterator();
while (iter.hasNext()) {
iter.advance();
int columnId = iter.getColumnId();
double value = iter.getValue();
}
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advance the iterator to the next columnId-value pair.
|
int |
getColumnId()
Returns the columnId of the current columnId-value pair.
|
double |
getValue()
Returns the value of the current columnId-value pair.
|
boolean |
hasNext()
Check whether the iterator has a next element.
|
void |
incValue(double value)
Increments the value of the current columnId-value pair.
|
void |
setValue(double value)
Sets the value of the current columnId-value pair.
|
boolean hasNext()
void advance()
int getColumnId()
double getValue()
void setValue(double value)
value - new value to be set.void incValue(double value)
value - value to increment by.