View Javadoc

1   package com.loribel.commons.abstraction;
2   
3   /***
4    * Abstraction of a number selector.
5    */
6   public interface GB_NumberSelector
7           extends
8               GB_Selector
9   {
10      /***
11       * Available types to use with this interval.
12       */
13      public static final class TYPE
14      {
15          public static final int NONE = 0;
16          public static final int EQUALS = 1;
17          public static final int SUPERIOR = 2;
18          public static final int SUPERIOR_STRICT = 3;
19          public static final int INFERIOR = 4;
20          public static final int INFERIOR_STRICT = 5;
21          public static final int INTERVAL = 6;
22          public static final int INTERVAL_STRICT = 7;
23          public static final int INTERVAL_STRICT_EQUAL = 8;
24          public static final int INTERVAL_EQUAL_STRICT = 9;        
25      }
26  
27      /***
28       * Returns the min value of the interval or the value used as constraint.
29       */
30      double getValue();
31  
32      /***
33       * Returns the max value of interval if needed, otherwise returns null.
34       */
35      double getValue2();
36  }