@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD}) public @interface Range
RangeConstraint
Modifier and Type | Required Element and Description |
---|---|
String |
max |
String |
min |
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Comparator<?>> |
comparator |
String[] |
groups |
String |
message |
ValidationTarget[] |
targets |
public abstract String min
public abstract String max
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.