Annotation Type ValueConstraints
-
@Documented @Retention(RUNTIME) @Target({TYPE,FIELD}) public @interface ValueConstraints
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AllowedValues[]
allowedValues
Get the allowed value constraints for the type or field this annotation is applied to.Expect[]
expect
Get the expect constraints for the type or field this annotation is applied to.IndexHasKey[]
indexHasKey
Get the index-has-key constraints for the type or field this annotation is applied to.Matches[]
matches
Get the matches constraints for the type or field this annotation is applied to.
-
-
-
Element Detail
-
allowedValues
@NonNull AllowedValues[] allowedValues
Get the allowed value constraints for the type or field this annotation is applied to.- Returns:
- the allowed values or an empty array if no allowed values constraints are defined
- Default:
- {}
-
-
-
indexHasKey
@NonNull IndexHasKey[] indexHasKey
Get the index-has-key constraints for the type or field this annotation is applied to.- Returns:
- the allowed values or an empty array if no allowed values constraints are defined
- Default:
- {}
-
-