@Override public int compareTo(ComponentObject other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public boolean equals(ComponentObject other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }