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


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

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


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

min

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

Default:
-2147483648

max

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

Default:
2147483647


Copyright (c) Dawid Weiss, Stanislaw Osinski