Exemplo n.º 1
0
 @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;
 }
Exemplo n.º 2
0
 public boolean equals(ComponentObject other) {
   return other != null
       && getSetField() == other.getSetField()
       && getFieldValue().equals(other.getFieldValue());
 }