/* (non-Javadoc) * @see java.lang.Comparable#compareTo(java.lang.Object) */ @Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue() .compareTo(Coerce.toEnum(other.getValue(), Direction.class, Direction.NONE)); }
@Override public int compareTo(Property<?, ?> o) { return this.getValue().getId().compareTo(o == null ? "" : Coerce.toString(o.getValue())); }