8014732: Minor spec issue: java.util.Spliterator.getExactSizeIfKnown

A minor documentation issue (not a spec issue).

Reviewed-by: chegar, dl
This commit is contained in:
Paul Sandoz 2013-05-31 09:58:00 +02:00
parent bb1932055b
commit 5fe4973a2c

View File

@ -394,9 +394,9 @@ public interface Spliterator<T> {
* Convenience method that returns {@link #estimateSize()} if this
* Spliterator is {@link #SIZED}, else {@code -1}.
* @implSpec
* The default returns the result of {@code estimateSize()} if the
* Spliterator reports a characteristic of {@code SIZED}, and {@code -1}
* otherwise.
* The default implementation returns the result of {@code estimateSize()}
* if the Spliterator reports a characteristic of {@code SIZED}, and
* {@code -1} otherwise.
*
* @return the exact size, if known, else {@code -1}.
*/