< prev index next >

src/java.base/share/classes/java/util/stream/Streams.java

Print this page

        

*** 47,64 **** private Streams() { throw new Error("no instances"); } /** - * An object instance representing no value, that cannot be an actual - * data element of a stream. Used when processing streams that can contain - * {@code null} elements to distinguish between a {@code null} value and no - * value. - */ - static final Object NONE = new Object(); - - /** * An {@code int} range spliterator. */ static final class RangeIntSpliterator implements Spliterator.OfInt { // Can never be greater that upTo, this avoids overflow if upper bound // is Integer.MAX_VALUE --- 47,56 ----
< prev index next >