Skips to the first match beyond the current whose document number is greater than or equal to a given target. When this method is used the {@link #explain(int)} method should not be used.
@param target The target document number.
@return true iff there is such a match.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }
Most implementations are considerably more efficient than that.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.