public final class ReactiveTypeDescriptor extends ObjectSE
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
ObjectSE | getEmptyValue() 基になるリアクティブ型または非同期型の空の値のインスタンスを返します。 |
ClassSE<?> | getReactiveType() この記述子のリアクティブ型を返します。 |
int | hashCode() |
boolean | isDeferred() 基になる操作が遅延され、明示的に開始する必要があるかどうか。 |
boolean | isMultiValue() リアクティブ型が複数の値を生成できる場合は true を返します。Flux に適合させるのに適しています。 |
boolean | isNoValue() リアクティブ型が値を生成せず、完了信号とエラー信号のみを提供する場合は、 true を返します。 |
static ReactiveTypeDescriptor | multiValue(ClassSE<?> type, SupplierSE<?> emptySupplier) 0..N の値を生成できるリアクティブ型の記述子。 |
static ReactiveTypeDescriptor | nonDeferredAsyncValue(ClassSE<?> type, SupplierSE<?> emptySupplier) singleOptionalValue(Class, Supplier) と同じですが、CompletableFuture SE などの据え置き型の非同期型です。 |
static ReactiveTypeDescriptor | noValue(ClassSE<?> type, SupplierSE<?> emptySupplier) 値を生成しないリアクティブ型の記述子。 |
static ReactiveTypeDescriptor | singleOptionalValue(ClassSE<?> type, SupplierSE<?> emptySupplier) 0..1 値を生成できるリアクティブ型の記述子。 |
static ReactiveTypeDescriptor | singleRequiredValue(ClassSE<?> type) 完了するために 1 つの値を生成する必要があるリアクティブ型の記述子。 |
boolean | supportsEmpty() リアクティブ型が値なしで完了できる場合は、 true を返します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ClassSE<?> getReactiveType()
public boolean isMultiValue()
true
を返します。Flux
に適合させるのに適しています。false
の戻り値は、リアクティブ型が最大で 1 つの値を生成できることを意味するため、Mono
に適合させるのに適しています。public boolean isNoValue()
true
を返します。public boolean supportsEmpty()
true
を返します。public ObjectSE getEmptyValue()
supportsEmpty()
が真であることを意味します。public boolean isDeferred()
public int hashCode()
ObjectSE
の hashCodeSE
public static ReactiveTypeDescriptor multiValue(ClassSE<?> type, SupplierSE<?> emptySupplier)
type
- リアクティブ型 emptySupplier
- リアクティブ型の空の値のインスタンスのサプライヤー public static ReactiveTypeDescriptor singleOptionalValue(ClassSE<?> type, SupplierSE<?> emptySupplier)
type
- リアクティブ型 emptySupplier
- リアクティブ型の空の値のインスタンスのサプライヤー public static ReactiveTypeDescriptor singleRequiredValue(ClassSE<?> type)
type
- リアクティブ型 public static ReactiveTypeDescriptor noValue(ClassSE<?> type, SupplierSE<?> emptySupplier)
type
- リアクティブ型 emptySupplier
- リアクティブ型の空の値のインスタンスのサプライヤー public static ReactiveTypeDescriptor nonDeferredAsyncValue(ClassSE<?> type, SupplierSE<?> emptySupplier)
singleOptionalValue(Class, Supplier)
と同じですが、CompletableFuture
SE などの据え置き型の非同期型です。type
- リアクティブ型 emptySupplier
- リアクティブ型の空の値のインスタンスのサプライヤー