Float Range
annotation class FloatRange(val from: Double = Double.NEGATIVE_INFINITY, val to: Double = Double.POSITIVE_INFINITY, val fromInclusive: Boolean = true, val toInclusive: Boolean = true)
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() {
...
}Content copied to clipboard