Package jakarta.validation.constraints
Annotation Type NegativeOrZero
- 
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface NegativeOrZeroThe annotated element must be a negative number or 0.Supported types are:
BigDecimalBigIntegerbyte,short,int,long,float,doubleand their respective wrappers
nullelements are considered valid.- Since:
 - 2.0
 - Author:
 - Gunnar Morling
 
 
- 
- 
- 
payload
java.lang.Class<? extends Payload>[] payload
- Default:
 - {}
 
 
 - 
 
 -