| パッケージ | 説明 | 
|---|---|
| java.util | 
 コレクション・フレームワーク、レガシー・コレクション・クラス、イベント・モデル、日時機能、国際化、およびさまざまなユーティリティ・クラス(StringTokenizer、乱数ジェネレータ、およびビット配列)が含まれています。 
 | 
| java.util.concurrent.atomic | 
 単一の変数に対するロックフリーでスレッド・セーフなプログラミングをサポートするクラスの小規模なツールキットです。 
 | 
| java.util.function | 
 関数型インタフェースは、ラムダ式やメソッド参照のターゲットとなる型を提供します。 
 | 
| java.util.stream | 
 コレクションに対するマップ-リデュース変換など、要素のストリームに対する関数型の操作をサポートするクラスです。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static <T> void | 
Arrays.parallelPrefix(T[] array, BinaryOperator<T> op)
指定された関数を使用して、指定された配列の各要素をその場で並列に累積します。 
 | 
static <T> void | 
Arrays.parallelPrefix(T[] array, int fromIndex, int toIndex, BinaryOperator<T> op)
配列の指定された部分範囲に対して 
Arrays.parallelPrefix(Object[], BinaryOperator)を実行します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
E | 
AtomicReferenceArray.accumulateAndGet(int i, E x, BinaryOperator<E> accumulatorFunction)
インデックス 
iにある要素を、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、更新された値を返します。 | 
V | 
AtomicReferenceFieldUpdater.accumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction)
このアップデータが管理する指定されたオブジェクトのフィールドを、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、更新された値を返します。 
 | 
V | 
AtomicReference.accumulateAndGet(V x, BinaryOperator<V> accumulatorFunction)
現在の値を、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、更新された値を返します。 
 | 
E | 
AtomicReferenceArray.getAndAccumulate(int i, E x, BinaryOperator<E> accumulatorFunction)
インデックス 
iにある要素を、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、前の値を返します。 | 
V | 
AtomicReferenceFieldUpdater.getAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction)
このアップデータが管理する指定されたオブジェクトのフィールドを、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、前の値を返します。 
 | 
V | 
AtomicReference.getAndAccumulate(V x, BinaryOperator<V> accumulatorFunction)
現在の値を、指定された関数を現在の値と指定された値に適用した結果で原子的に更新し、前の値を返します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static <T> BinaryOperator<T> | 
BinaryOperator.maxBy(Comparator<? super T> comparator)
指定された 
Comparatorに従って2つの要素の大きいほうを返すBinaryOperatorを返します。 | 
static <T> BinaryOperator<T> | 
BinaryOperator.minBy(Comparator<? super T> comparator)
指定された 
Comparatorに従って2つの要素の小さいほうを返すBinaryOperatorを返します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
BinaryOperator<A> | 
Collector.combiner()
2つの部分的な結果を受け取ってマージする関数。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static <T,A,R> Collector<T,A,R> | 
Collector.of(Supplier<A> supplier, BiConsumer<A,T> accumulator, BinaryOperator<A> combiner, Function<A,R> finisher, Collector.Characteristics... characteristics)
指定された 
supplier、accumulator、combiner、およびfinisher関数で記述される新しいCollectorを返します。 | 
static <T,R> Collector<T,R,R> | 
Collector.of(Supplier<R> supplier, BiConsumer<R,T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics)
指定された 
supplier、accumulator、およびcombiner関数で記述される新しいCollectorを返します。 | 
Optional<T> | 
Stream.reduce(BinaryOperator<T> accumulator)
 | 
T | 
Stream.reduce(T identity, BinaryOperator<T> accumulator)
 | 
<U> U | 
Stream.reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner)
指定された単位元、累積関数、および結合的関数を使用して、このストリームの要素に対してリダクションを実行します。 
 | 
static <T> Collector<T,?,Optional<T>> | 
Collectors.reducing(BinaryOperator<T> op)
指定された 
BinaryOperatorの下で入力要素のリダクションを実行するCollectorを返します。 | 
static <T> Collector<T,?,T> | 
Collectors.reducing(T identity, BinaryOperator<T> op)
指定された 
BinaryOperatorの下で指定された単位元を使って入力要素のリダクションを実行するCollectorを返します。 | 
static <T,U> Collector<T,?,U> | 
Collectors.reducing(U identity, Function<? super T,? extends U> mapper, BinaryOperator<U> op)
指定されたマッピング関数と 
BinaryOperatorの下で入力要素のリダクションを実行するCollectorを返します。 | 
static <T,K,U> Collector<T,?,ConcurrentMap<K,U>> | 
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)
ConcurrentMap内に要素を累積する並行Collectorを返します(指定されたマッピング関数を入力要素に適用した結果が、マップのキーと値になる)。 | 
static <T,K,U,M extends ConcurrentMap<K,U>> | 
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapSupplier)
ConcurrentMap内に要素を累積する並行Collectorを返します(指定されたマッピング関数を入力要素に適用した結果が、マップのキーと値になる)。 | 
static <T,K,U> Collector<T,?,Map<K,U>> | 
Collectors.toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)
Map内に要素を累積するCollectorを返します(指定されたマッピング関数を入力要素に適用した結果が、マップのキーと値になる)。 | 
static <T,K,U,M extends Map<K,U>> | 
Collectors.toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapSupplier)
Map内に要素を累積するCollectorを返します(指定されたマッピング関数を入力要素に適用した結果が、マップのキーと値になる)。 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.