-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Documented()@Retention(value = )@Target(value = {}) public @interface FloatRange
Denotes that the annotated element should be a float or double in the given range
Example:
@FloatRange(from=0.0,to=1.0) public float getAlpha() { ... }
-
-
Method Summary
Modifier and Type Method Description abstract double
from()
Smallest value. abstract double
to()
Largest value. abstract boolean
fromInclusive()
Whether the from value is included in the range abstract boolean
toInclusive()
Whether the to value is included in the range -
-
Method Detail
-
from
abstract double from()
Smallest value. Whether it is inclusive or not is determinedby fromInclusive
-
to
abstract double to()
Largest value. Whether it is inclusive or not is determinedby toInclusive
-
fromInclusive
abstract boolean fromInclusive()
Whether the from value is included in the range
-
toInclusive
abstract boolean toInclusive()
Whether the to value is included in the range
-
-
-
-