Пример #1
0
  @Override
  public boolean equals(Object that) {

    // [#2144] TableFieldImpl equality can be decided without executing the
    // rather expensive implementation of AbstractQueryPart.equals()
    if (that instanceof TableField) {
      TableField<?, ?> other = (TableField<?, ?>) that;
      return StringUtils.equals(getTable(), other.getTable())
          && StringUtils.equals(getName(), other.getName());
    }

    return super.equals(that);
  }