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