Calling this method is strongly recommended if not all elements of this iterator are
retrieved. This will allow the system to release system resources immediately.
The SeekableIterator
is closed automatically if all elements are retrieved.
Then calling method close()
is optional.
If the iterator does not contain another element null
is returned.
If any of the methods next(), forward(int) or forward(int,int) have been called before
null
is returned.
This method is useful if only the first element of an iterator is needed.
OrderMgr.queryOrders("queryString", "sortString", args).first()
null
if the iterator doesn't have another element or the methods next(), forward(int) or forward(int,int) have already been called.