Ejemplo n.º 1
0
 /**
  * Create a new integer property with the specified value and logical operator.
  *
  * @param value value to match
  * @param operator logical operator to use when comparing to other properties
  */
 public IntProperty(Object value, Operator operator) {
   super(Coerce.toInteger(value), operator);
 }
Ejemplo n.º 2
0
 @Override
 public int compareTo(ItemProperty<?, ?> other) {
   return this.getValue().compareTo(other == null ? 1 : Coerce.toInteger(other.getValue()));
 }
Ejemplo n.º 3
0
 /**
  * Create a new integer property with the specified value.
  *
  * @param value value to match
  */
 public IntProperty(int value) {
   super(Coerce.toInteger(value));
 }