Package jakarta.validation.constraints
Annotation Interface PositiveOrZero
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@Documented
@Constraint(validatedBy={})
public @interface PositiveOrZero
The annotated element must be a positive number or 0.
 
Supported types are:
BigDecimalBigIntegerbyte,short,int,long,float,doubleand their respective wrappers
 null elements are considered valid.
- Since:
 - 2.0
 - Author:
 - Gunnar Morling
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalPositiveOrZeroconstraints on the same element. - 
Optional Element Summary
Optional Elements