/** * Create a new {@link StringProperty} for matching the specified value * with the specified operator. * * @param value the value to match * @param operator the operator to use when comparing with other properties */ public StringProperty(Object value, Operator operator) { super(Coerce.toString(value), operator); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toString(other.getValue())); }
filteredList.add((T)o); } else if (ofClass.equals(String.class)) { filteredList.add((T)Coerce.toString(o)); } else if (ofClass.equals(Integer.TYPE) || ofClass.equals(Integer.class)) { filteredList.add((T)(Integer)Coerce.toInteger(o));
@Override public int compareTo(Property<?, ?> o) { return this.getValue().getId().compareTo(o == null ? "" : Coerce.toString(o.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); }
/** * Create a new {@link StringProperty} for matching the specified value * with the specified operator. * * @param value the value to match * @param operator the operator to use when comparing with other properties */ public StringProperty(Object value, Operator operator) { super(Coerce.toString(value), operator); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toString(other.getValue())); }
filteredList.add((T)o); } else if (ofClass.equals(String.class)) { filteredList.add((T)Coerce.toString(o)); } else if (ofClass.equals(Integer.TYPE) || ofClass.equals(Integer.class)) { filteredList.add((T)(Integer)Coerce.toInteger(o));
@Override public int compareTo(Property<?, ?> o) { return this.getValue().getId().compareTo(o == null ? "" : Coerce.toString(o.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); }