Пример #1
0
 public boolean equals(Object aThat) {
   if (this == aThat) return true;
   if (!(aThat instanceof IntegerSextuple)) return false;
   IntegerSextuple that = (IntegerSextuple) aThat;
   return EqualsUtil.areEqual(this.first, that.first)
       && EqualsUtil.areEqual(this.second, that.second);
 }
Пример #2
0
  public static boolean hasChanged(Object target, Object source) {
    if (source == null) {
      return false;
    }

    return !EqualsUtil.areEqual(target, source);
  }