コード例 #1
0
 @Override
 public int compareTo(HawkChangeEvent 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;
 }
コード例 #2
0
 public boolean equals(HawkChangeEvent other) {
   return other != null
       && getSetField() == other.getSetField()
       && getFieldValue().equals(other.getFieldValue());
 }