com.univocity.api
Annotation Type Range


@Retention(value=RUNTIME)
public @interface Range

Defines a range of values that a method's parameters may take. Used for the GUI to define what values are selectable by the user.


Required Element Summary
 int max
          Defines the maximum value of method's parameter.
 int min
          Defines the minimum value of method's parameter.
 
Optional Element Summary
 int increment
          Defines the difference between the numbers of the range.
 

Element Detail

min

public abstract int min
Defines the minimum value of method's parameter.

Returns:
the smallest acceptable value for the parameter

max

public abstract int max
Defines the maximum value of method's parameter.

Returns:
the largest acceptable value for the parameter

increment

public abstract int increment
Defines the difference between the numbers of the range. For instance, setting the increment to 1 means the range will look like (min, min+1, min+2,...max). Setting the increment to 10 will look like (min, min+10, min+20,...max). Leaving it at the default will mean that the increment will be scaled based on the difference between the min max sizes

Returns:
the difference between numbers of the range
Default:
-1


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.