Qore jni Module 2.4.0
Loading...
Searching...
No Matches
org.qore.lang.AbstractIterator Class Reference

Java wrapper for the Qore::AbstractIterator class in Qore. More...

Inheritance diagram for org.qore.lang.AbstractIterator:
org.qore.lang.HashListIterator org.qore.lang.dataprovider.AbstractDataProviderBulkOperation org.qore.lang.dataprovider.AbstractDataProviderBulkRecordInterface org.qore.lang.dataprovider.AbstractDataProviderRecordIterator

Public Member Methods

 AbstractIterator (QoreObject obj) throws Throwable
 creates the object as a wrapper for the Qore object
 
boolean next () throws Throwable
 Moves the current position to the next element; returns False if there are no more elements.
 
Object getValue () throws Throwable
 returns the current value
 
boolean valid () throws Throwable
 returns true if the iterator is currently pointing at a valid element, false if not
 

Detailed Description

Java wrapper for the Qore::AbstractIterator class in Qore.

Note
Loads and initializes the Qore library and the jni module in static initialization if necessary
Deprecated:
Use dynamic imports instead: import qore.Qore.AbstractIterator;

Member Function Documentation

◆ getValue()

Object org.qore.lang.AbstractIterator.getValue ( ) throws Throwable
inline

returns the current value

Returns
the current value
Exceptions
INVALID-ITERATORthe iterator is not pointing at a valid element
See also
AbstractIterator::valid()

Reimplemented in org.qore.lang.dataprovider.AbstractDataProviderBulkRecordInterface, and org.qore.lang.dataprovider.AbstractDataProviderRecordIterator.

◆ next()

boolean org.qore.lang.AbstractIterator.next ( ) throws Throwable
inline

Moves the current position to the next element; returns False if there are no more elements.

This method will return True again after it returns False once if the object being iterated is not empty, otherwise it will always return False. The iterator object should not be used after this method returns False

Returns
False if there are no more elements (in which case the iterator object is invalid and should not be used); True if successful (meaning that the iterator object is valid)

◆ valid()

boolean org.qore.lang.AbstractIterator.valid ( ) throws Throwable
inline

returns true if the iterator is currently pointing at a valid element, false if not

Returns
true if the iterator is currently pointing at a valid element, false if not

Reimplemented in org.qore.lang.dataprovider.AbstractDataProviderBulkRecordInterface.


The documentation for this class was generated from the following file: