Example #1
0
  /* (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));
  }
Example #2
0
 @Override
 public int compareTo(Property<?, ?> o) {
   return this.getValue().getId().compareTo(o == null ? "" : Coerce.toString(o.getValue()));
 }