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