Beispiel #1
0
 @Override
 protected boolean compare(State state, Object keyValue, List<Object> values) {
   for (Object value : values) {
     if (ObjectUtils.compare(keyValue, value, false) > 0) {
       return false;
     }
   }
   return true;
 }
  @Override
  public int compare(Object x, Object y) {
    State xState = State.getInstance(x);
    State yState = State.getInstance(y);

    Object xValue = xState != null ? filter(xState.getByPath(field)) : null;
    Object yValue = yState != null ? filter(yState.getByPath(field)) : null;

    return ObjectUtils.compare(xValue, yValue, isNullGreatest);
  }
Beispiel #3
0
 @Override
 public int compareTo(Record other) {
   return ObjectUtils.compare(getLabel(), other.getLabel(), true);
 }