public interface CachedSequence
next()
.
Although several data type accessor methods are provided,
in general for a given instance of this class only one of these will
give a non-error return (the same one for all rows); it is therefore
the responsibility of the user of an instance of this class to
keep track of what type is appropriate, since Java's type system
will not enforce it. Attempting to retrieve the wrong type of data
will give a result (it must not throw an exception), but this
result may not be meaningful.
This non-type-safe arrangement is used so that primitive objects can
be accessed from this interface.Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
Retrieve the current value of this sequence as a boolean value.
|
double |
getDoubleValue()
Retrieve the current value of this sequence as a floating point number.
|
int |
getIntValue()
Retrieve the current value of this sequence as an integer.
|
java.lang.Object |
getObjectValue()
Retrieve the current value of this sequence as an object.
|
boolean |
next()
Advance to the next item in the sequence (the next row).
|
boolean next()
java.lang.Object getObjectValue()
double getDoubleValue()
int getIntValue()
boolean getBooleanValue()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.