예제 #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);
 }
예제 #2
0
 @Override
 public int compareTo(ItemProperty<?, ?> other) {
   return this.getValue().compareTo(other == null ? 1 : Coerce.toInteger(other.getValue()));
 }
예제 #3
0
 /**
  * Create a new integer property with the specified value.
  *
  * @param value value to match
  */
 public IntProperty(int value) {
   super(Coerce.toInteger(value));
 }