예제 #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;
 }
예제 #2
0
  @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);
  }
예제 #3
0
 @Override
 public int compareTo(Record other) {
   return ObjectUtils.compare(getLabel(), other.getLabel(), true);
 }