@Target(value={METHOD,FIELD,ANNOTATION_TYPE,TYPE_USE}) @Retention(value=RUNTIME) @Constraint(validatedBy=PortRangeValidator.class) @Documented public @interface PortRange
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
groups
The groups the constraint belongs to.
|
int |
max
The maximum value of the port range the validated
int must be in. |
String |
message
The validation message for this constraint.
|
int |
min
The minimum value of the port range the validated
int must be in. |
Class<? extends javax.validation.Payload>[] |
payload
The payloads of this constraint.
|
public abstract int min
int must be in.public abstract int max
int must be in.public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2023. All rights reserved.