-
@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Mandatory
Annotation indicating that a property is mandatory. This annotation can not be combined with property default methods that act as factory for the property. It is a convenience annotation to avoid the burden of implementing a default method just for the sake of making a property mandatory what is a quite common case.- Since:
- 1.0.0
- See Also:
ObjectValidatorBuilder.mandatory()