mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 16:26:05 +00:00
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:
parent
bb1932055b
commit
5fe4973a2c
@ -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}.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user