/** * Create a new integer property with the specified value. * * @param value value to match */ public BooleanProperty(boolean value) { super(Coerce.toBoolean(value)); }
/** * 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 BooleanProperty(Object value, Operator operator) { super(Coerce.toBoolean(value), operator); }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null || Coerce.toBoolean(other.getValue())); }
filteredList.add((T)(Double)Coerce.toDouble(o)); } else if (ofClass.equals(Boolean.TYPE) || ofClass.equals(Boolean.class)) { filteredList.add((T)(Boolean)Coerce.toBoolean(o));
/** * Create a new integer property with the specified value. * * @param value value to match */ public BooleanProperty(boolean value) { super(Coerce.toBoolean(value)); }
/** * 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 BooleanProperty(Object value, Operator operator) { super(Coerce.toBoolean(value), operator); }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null || Coerce.toBoolean(other.getValue())); }
filteredList.add((T)(Double)Coerce.toDouble(o)); } else if (ofClass.equals(Boolean.TYPE) || ofClass.equals(Boolean.class)) { filteredList.add((T)(Boolean)Coerce.toBoolean(o));