AsyncEnumeration<E> インターフェイス

型パラメーター

E

列挙する要素の型。

public interface AsyncEnumeration

非同期列挙子

メソッドの概要

修飾子と型 メソッドと説明
CompletableFuture<Boolean> hasMoreElementsAsync()

列挙する要素が他にもあるかどうかを非同期的に取得します。

CompletableFuture<E> nextElementAsync()

列挙体の次の要素を取得します。

メソッドの詳細

hasMoreElementsAsync

public CompletableFuture hasMoreElementsAsync()

列挙する要素が他にもあるかどうかを非同期的に取得します。

戻り値:

列挙する要素が残っているかどうかを示すブール値を返す、完了可能な未来。

nextElementAsync

public CompletableFuture nextElementAsync()

列挙体の次の要素を取得します。

戻り値:

次の要素。

適用対象