Annotation Interface IpAddress
@Incubating
@Documented
@Constraint(validatedBy={})
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
public @interface IpAddress
Checks that the annotated character sequence is a valid
IP address.
The supported type is
CharSequence. null is considered valid.- Since:
- 9.1
- Author:
- Ivan Malutin
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String message- Default:
"{org.hibernate.validator.constraints.IpAddress.message}"
-
groups
Class<?>[] groups- Default:
{}
-
payload
-
type
IpAddress.Type type- Default:
ANY
-