@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @ConstraintDefinition public @interface FloatConstraint
Example:
public interface PolarCoordinate extends Storable {
double getTheta();
@FloatConstraint(min=0, max=Math.PI * 2, disallowed=Double.NaN)
void setTheta(double radians);
...
}
IntegerConstraint,
TextConstraint| Modifier and Type | Optional Element and Description |
|---|---|
double[] |
allowed
Specific allowed values for property.
|
double[] |
disallowed
Specific disallowed values for property.
|
double |
max
Specify maximum allowed value for float/double property.
|
double |
min
Specify minimum allowed value for float/double property.
|
public abstract double[] allowed
public abstract double[] disallowed
public abstract double min
public abstract double max
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.