DataSizeRange for correct SI and IEC prefixes.@Deprecated @Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @MinSize(value=0L) @MaxSize(value=9223372036854775807L, unit=TERABYTES) @ReportAsSingleViolation public @interface SizeRange
Size instances.| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
groups
Deprecated.
The groups the constraint belongs to.
|
long |
max
Deprecated.
The maximum value of the range the validated
Size must be in. |
String |
message
Deprecated.
The validation message for this constraint.
|
long |
min
Deprecated.
The minimum value of the range the validated
Size must be in. |
Class<? extends javax.validation.Payload>[] |
payload
Deprecated.
The payloads of this constraint.
|
SizeUnit |
unit
Deprecated.
The unit of the validated range.
|
@OverridesAttribute(constraint=MinSize.class, name="value") public abstract long min
Size must be in.@OverridesAttribute(constraint=MaxSize.class, name="value") public abstract long max
Size must be in.@OverridesAttribute(constraint=MinSize.class,name="unit") @OverridesAttribute(constraint=MaxSize.class,name="unit") public abstract SizeUnit unit
SizeUnitpublic abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2023. All rights reserved.