Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations
of static and default interface methods added in Java 8. |
java8.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java8.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Class and Description |
---|---|
class |
LongSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and
average.
|
Modifier and Type | Method and Description |
---|---|
void |
Spliterator.OfLong.forEachRemaining(LongConsumer action) |
static void |
Iterators.forEachRemaining(PrimitiveIterator.OfLong it,
LongConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
static void |
Spliterators.OfLong.forEachRemaining(Spliterator.OfLong this_,
LongConsumer action)
Performs the given action for each remaining element of the passed Spliterator,
sequentially in the current thread, until all elements have been processed or
the action throws an exception.
|
void |
OptionalLong.ifPresent(LongConsumer consumer)
Have the specified consumer accept the value if a value is present,
otherwise do nothing.
|
boolean |
Spliterator.OfLong.tryAdvance(LongConsumer action) |
Modifier and Type | Method and Description |
---|---|
static LongConsumer |
LongConsumers.andThen(LongConsumer this_,
LongConsumer after)
Returns a composed
LongConsumer that performs, in sequence, the this_
operation followed by the after operation. |
Modifier and Type | Method and Description |
---|---|
static LongConsumer |
LongConsumers.andThen(LongConsumer this_,
LongConsumer after)
Returns a composed
LongConsumer that performs, in sequence, the this_
operation followed by the after operation. |
Modifier and Type | Interface and Description |
---|---|
static interface |
LongStream.Builder
A mutable builder for a
LongStream . |
Modifier and Type | Method and 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.
|
Copyright © 2015. All rights reserved.