public interface ReactiveValidator
Modifier and Type | Method and Description |
---|---|
<T> CompletionStage<T> |
validateCompletionStage(CompletionStage<T> completionStage,
Class<?>... groups)
Validate the given CompletionStage by returning a new CompletionStage that validates the emitted value.
|
<T> Publisher<T> |
validatePublisher(Publisher<T> publisher,
Class<?>... groups)
Validate the given publisher by returning a new Publisher that validates each emitted value.
|
@NonNull <T> Publisher<T> validatePublisher(@NonNull Publisher<T> publisher, Class<?>... groups)
ConstraintViolationException
will be thrown.T
- The generic typepublisher
- The publishergroups
- The groups@NonNull <T> CompletionStage<T> validateCompletionStage(@NonNull CompletionStage<T> completionStage, Class<?>... groups)
ConstraintViolationException
will be thrown.T
- The generic typecompletionStage
- The completion stagegroups
- The groups