@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD}) public @interface GreaterThan
>
operator to the annotated element and property
specified by this annotation.PropertyComparisonConstraint
Modifier and Type | Required Element and Description |
---|---|
String |
value |
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Comparator<?>> |
comparator |
String[] |
groups |
String |
message |
ValidationTarget[] |
targets |
public abstract String value
public abstract Class<? extends Comparator<?>> comparator
public abstract String message
public abstract String[] groups
public abstract ValidationTarget[] targets
ValidationTarget.VALUE
will be used by default.Copyright © 2011–2020 FoxLabs. All rights reserved.