Package io.micronaut.http.bind.binders
Interface PendingRequestBindingResult<T>
- Type Parameters:
T
- The result type
- All Superinterfaces:
ArgumentBinder.BindingResult<T>
A variation of
ArgumentBinder.BindingResult
that indicates
that the binding result is pending and the value should be checked later.- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from interface io.micronaut.core.bind.ArgumentBinder.BindingResult
EMPTY, UNSATISFIED
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R> ArgumentBinder.BindingResult<R>
flatMap
(@NonNull Function<T, ArgumentBinder.BindingResult<R>> transform) Transform the result, if present.boolean
default boolean
default boolean
Methods inherited from interface io.micronaut.core.bind.ArgumentBinder.BindingResult
get, getConversionErrors, getValue
-
Method Details
-
isPending
boolean isPending()- Returns:
- True if the result is pending - not ready to be resolved
-
isSatisfied
default boolean isSatisfied()- Specified by:
isSatisfied
in interfaceArgumentBinder.BindingResult<T>
- Returns:
- Was the binding requirement satisfied
-
isPresentAndSatisfied
default boolean isPresentAndSatisfied()- Specified by:
isPresentAndSatisfied
in interfaceArgumentBinder.BindingResult<T>
- Returns:
- Is the value present and satisfied
-
flatMap
@NonNull default <R> ArgumentBinder.BindingResult<R> flatMap(@NonNull @NonNull Function<T, ArgumentBinder.BindingResult<R>> transform) Description copied from interface:ArgumentBinder.BindingResult
Transform the result, if present.- Specified by:
flatMap
in interfaceArgumentBinder.BindingResult<T>
- Type Parameters:
R
- The type of the mapped result- Parameters:
transform
- The transformation function- Returns:
- The mapped result
-