Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
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.concurrent |
Utility classes commonly useful in concurrent programming.
|
java.util.stream |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
default void |
Iterable.forEach(Consumer<? super T> action)
Performs the given action on the contents of the
Iterable , in the
order elements occur when iterating, until all elements have been
processed or the action throws an exception. |
Modifier and Type | Method and Description |
---|---|
void |
ArrayList.forEach(Consumer<? super E> action) |
void |
Vector.forEach(Consumer<? super E> action) |
default void |
PrimitiveIterator.OfDouble.forEachRemaining(Consumer<? super Double> action)
Performs the given action for each remaining element, in the order
elements occur when iterating, until all elements have been processed or
the action throws an exception.
|
default void |
Spliterator.OfDouble.forEachRemaining(Consumer<? super Double> action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception.
|
default void |
Iterator.forEachRemaining(Consumer<? super E> action)
Performs the given action for each remaining element, in the order
elements occur when iterating, until all elements have been processed or
the action throws an exception.
|
default void |
PrimitiveIterator.OfInt.forEachRemaining(Consumer<? super Integer> action)
Performs the given action for each remaining element, in the order
elements occur when iterating, until all elements have been processed or
the action throws an exception.
|
default void |
Spliterator.OfInt.forEachRemaining(Consumer<? super Integer> action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception.
|
default void |
PrimitiveIterator.OfLong.forEachRemaining(Consumer<? super Long> action)
Performs the given action for each remaining element, in the order
elements occur when iterating, until all elements have been processed or
the action throws an exception.
|
default void |
Spliterator.OfLong.forEachRemaining(Consumer<? super Long> action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception.
|
default void |
Spliterator.forEachRemaining(Consumer<? super T> action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception.
|
void |
Optional.ifPresent(Consumer<? super T> consumer)
Have the specified consumer accept the value if a value is present,
otherwise do nothing.
|
default boolean |
Spliterator.OfDouble.tryAdvance(Consumer<? super Double> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
default boolean |
Spliterator.OfInt.tryAdvance(Consumer<? super Integer> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
default boolean |
Spliterator.OfLong.tryAdvance(Consumer<? super Long> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
boolean |
Spliterator.tryAdvance(Consumer<? super T> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
CompletableFuture.acceptEither(CompletableFuture<? extends T> other,
Consumer<? super T> block)
Returns a new CompletableFuture that is completed
when either this or the other given CompletableFuture completes,
after performing the given action with the result of either this
or the other CompletableFuture's result.
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
Consumer<? super T> block)
Returns a new CompletableFuture that is asynchronously completed
when either this or the other given CompletableFuture completes,
after performing the given action with the result of either this
or the other CompletableFuture's result from a task running in
the
ForkJoinPool.commonPool() . |
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
Consumer<? super T> block,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when either this or the other given CompletableFuture completes,
after performing the given action with the result of either this
or the other CompletableFuture's result from a task running in
the given executor.
|
void |
CopyOnWriteArrayList.forEach(Consumer<? super E> action) |
CompletableFuture<Void> |
CompletableFuture.thenAccept(Consumer<? super T> block)
Returns a new CompletableFuture that is completed
when this CompletableFuture completes, after performing the given
action with this CompletableFuture's result.
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> block)
Returns a new CompletableFuture that is asynchronously completed
when this CompletableFuture completes, after performing the given
action with this CompletableFuture's result from a task running
in the
ForkJoinPool.commonPool() . |
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> block,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when this CompletableFuture completes, after performing the given
action with this CompletableFuture's result from a task running
in the given executor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StreamBuilder<T>
A mutable builder for a
Stream . |
Modifier and Type | Method and Description |
---|---|
void |
DelegatingStream.forEach(Consumer<? super T> action) |
void |
Stream.forEach(Consumer<? super T> action)
Performs an action for each element of this stream.
|
void |
DelegatingStream.forEachOrdered(Consumer<? super T> action) |
void |
Stream.forEachOrdered(Consumer<? super T> 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.
|
Stream<T> |
DelegatingStream.peek(Consumer<? super T> consumer) |
Stream<T> |
Stream.peek(Consumer<? super T> consumer)
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.
|
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