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