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