Package io.avaje.validation.constraints
Annotation Interface Positive
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@Documented
public @interface Positive
The annotated element must be a strictly positive number (i.e. 0 is considered as an invalid
value).
Supported types are:
BigDecimalBigIntegerbyte,short,int,long,float,doubleand their respective wrappers
null elements are considered valid.
- Author:
- Gunnar Morling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalPositiveconstraints on the same element. -
Optional Element Summary
Optional Elements