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.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Class | Description |
---|---|---|
class |
LongSummaryStatistics |
A state object for collecting statistics such as count, min, max, sum, and
average.
|
Modifier and Type | Method | Description |
---|---|---|
default void |
PrimitiveIterator.OfLong.forEachRemaining(LongConsumer action) |
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
default void |
Spliterator.OfLong.forEachRemaining(LongConsumer action) |
|
void |
OptionalLong.ifPresent(LongConsumer action) |
If a value is present, performs the given action with the value,
otherwise does nothing.
|
void |
OptionalLong.ifPresentOrElse(LongConsumer action,
Runnable emptyAction) |
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
boolean |
Spliterator.OfLong.tryAdvance(LongConsumer action) |
Modifier and Type | Method | Description |
---|---|---|
default LongConsumer |
LongConsumer.andThen(LongConsumer after) |
Returns a composed
LongConsumer that performs, in sequence, this
operation followed by the after operation. |
Modifier and Type | Method | Description |
---|---|---|
default LongConsumer |
LongConsumer.andThen(LongConsumer after) |
Returns a composed
LongConsumer that performs, in sequence, this
operation followed by the after operation. |
Modifier and Type | Interface | Description |
---|---|---|
static interface |
LongStream.Builder |
A mutable builder for a
LongStream . |
Modifier and Type | Method | Description |
---|---|---|
void |
LongStream.forEach(LongConsumer action) |
Performs an action for each element of this stream.
|
void |
LongStream.forEachOrdered(LongConsumer action) |
Performs an action for each element of this stream, guaranteeing that
each element is processed in encounter order for streams that have a
defined encounter order.
|
LongStream |
LongStream.peek(LongConsumer action) |
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on each element as elements are consumed
from the resulting stream.
|
Submit a bug or feature
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps