public class ConstraintViolations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<javax.validation.ConstraintViolation<?>> |
copyOf(Set<javax.validation.ConstraintViolation<T>> violations)
Copies a set of
ConstraintViolations. |
static <T> String |
format(javax.validation.ConstraintViolation<T> v)
Computes a string representation from a
ConstraintViolation. |
static <T> Collection<String> |
format(Set<javax.validation.ConstraintViolation<T>> violations)
Computes a set of formatted messages from the given typed set of
ConstraintViolations. |
static Collection<String> |
formatUntyped(Set<javax.validation.ConstraintViolation<?>> violations)
Computes a set of formatted messages from the given untyped set of
ConstraintViolations. |
public static <T> String format(javax.validation.ConstraintViolation<T> v)
ConstraintViolation.T - the generic type of the constraint violationv - the constraint violationpublic static <T> Collection<String> format(Set<javax.validation.ConstraintViolation<T>> violations)
ConstraintViolations.T - the generic type of the constraint violationsviolations - the constraint violations to formatpublic static Collection<String> formatUntyped(Set<javax.validation.ConstraintViolation<?>> violations)
ConstraintViolations.violations - the constraint violations to formatpublic static <T> Set<javax.validation.ConstraintViolation<?>> copyOf(Set<javax.validation.ConstraintViolation<T>> violations)
ConstraintViolations.T - the generic type of the constraint violationsviolations - the source setHashSet containing the violations from the source setCopyright © 2023. All rights reserved.