Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
|
java.util.stream |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
Optional.empty()
Returns an empty
Optional instance. |
static <T> Optional<T> |
Optional.of(T value)
Return an
Optional with the specified present value. |
Modifier and Type | Method and Description |
---|---|
Optional<T> |
DelegatingStream.findAny() |
Optional<T> |
Stream.findAny()
Returns an
Optional describing some element of the stream, or an
empty Optional if the stream is empty. |
Optional<T> |
DelegatingStream.findFirst() |
Optional<T> |
Stream.findFirst()
Returns an
Optional describing the first element of this stream
(in the encounter order), or an empty Optional if the stream is
empty. |
Optional<T> |
DelegatingStream.max(Comparator<? super T> comparator) |
Optional<T> |
Stream.max(Comparator<? super T> comparator)
Returns the maximum element of this stream according to the provided
Comparator . |
Optional<T> |
DelegatingStream.min(Comparator<? super T> comparator) |
Optional<T> |
Stream.min(Comparator<? super T> comparator)
Returns the minimum element of this stream according to the provided
Comparator . |
Optional<T> |
DelegatingStream.reduce(BinaryOperator<T> accumulator) |
Optional<T> |
Stream.reduce(BinaryOperator<T> accumulator)
Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an
Optional describing the reduced value,
if any. |
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92