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.concurrent |
Utility classes commonly useful in concurrent programming.
|
java.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java.util.stream |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
V |
HashMap.compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
Hashtable.compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
default V |
Map.compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
Attempts to compute a mapping for the specified key and its
current mapped value (or
null if there is no current
mapping). |
V |
HashMap.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
Hashtable.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
default V |
Map.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key is present and non-null, attempts to
compute a new mapping given the key and its current mapped value.
|
V |
HashMap.merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
Hashtable.merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
default V |
Map.merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value or is
associated with null, associates it with the given value.
|
void |
Hashtable.replaceAll(BiFunction<? super K,? super V,? extends V> function) |
default void |
Map.replaceAll(BiFunction<? super K,? super V,? extends V> function)
Replaces each entry's value with the result of invoking the given
function on that entry, in the order entries are returned by an entry
set iterator, until all entries have been processed or the function
throws an exception.
|
Modifier and Type | Method and Description |
---|---|
<U> CompletableFuture<U> |
CompletableFuture.handle(BiFunction<? super T,Throwable,? extends U> fn)
Returns a new CompletableFuture that is completed when this
CompletableFuture completes, with the result of the given
function of the result and exception of this CompletableFuture's
completion.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombine(CompletableFuture<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn)
Returns a new CompletableFuture that is completed
when both this and the other given CompletableFuture complete,
with the result of the given function of the results of the two
CompletableFutures.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn)
Returns a new CompletableFuture that is asynchronously completed
when both this and the other given CompletableFuture complete,
with the result of the given function of the results of the two
CompletableFutures from a task running in the
ForkJoinPool.commonPool() . |
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when both this and the other given CompletableFuture complete,
with the result of the given function of the results of the two
CompletableFutures from a task running in the given executor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BinaryOperator<T>
An operation upon two operands yielding a result.
|
Modifier and Type | Method and Description |
---|---|
BiFunction<R,T,R> |
Collector.accumulator()
A function that folds a new value into a cumulative result.
|
Modifier and Type | Method and Description |
---|---|
<U> U |
DelegatingStream.reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner) |
<U> U |
Stream.reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner)
Performs a reduction on the
elements of this stream, using the provided identity, accumulation
function, and a combining functions.
|
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