n
. Define the current document k
associated with this document iterator as follows:
If k
is larger than or equal to n
, then this method does nothing and returns k
. Otherwise, a call to this method is equivalent to
while( ( k = nextDocument() ) < n && k != -1 ); return k == -1 ? Integer.MAX_VALUE : k;
Thus, when a result k
≠ {@link Integer#MAX_VALUE}is returned, the state of this iterator will be exactly the same as after a call to {@link #nextDocument()} that returned k
. In particular, the first document larger than or equal to n
(when returned by this method) will not be returned by the next call to {@link #nextDocument()}.
@param n a document pointer.
@return a document pointer larger than or equal to n
if available, {@link Integer#MAX_VALUE}otherwise.
|
|
|
|