org.carrot2.util.attribute.constraint
Annotation Type DoubleRange


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface DoubleRange

Requires that the double attribute value is between min() (inclusively) and max() (inclusively).


Optional Element Summary
 double max
          Maximum value for the attribute, inclusive.
 double min
          Minimum value for the attribute, inclusive.
 

min

public abstract double min
Minimum value for the attribute, inclusive.

Default:
-1d/0d

max

public abstract double max
Maximum value for the attribute, inclusive.

Default:
1d/0d


Copyright (c) Dawid Weiss, Stanislaw Osinski