Exemplo n.º 1
0
 public boolean equals(
     ObjectLocator thisLocator,
     ObjectLocator thatLocator,
     Object object,
     EqualsStrategy strategy) {
   if (!(object instanceof Document)) {
     return false;
   }
   if (this == object) {
     return true;
   }
   final Document that = ((Document) object);
   {
     List<StatementOrBundle> lhsStatementOrBundle;
     lhsStatementOrBundle =
         (((this.statementOrBundle != null) && (!this.statementOrBundle.isEmpty()))
             ? this.getStatementOrBundle()
             : null);
     List<StatementOrBundle> rhsStatementOrBundle;
     rhsStatementOrBundle =
         (((that.statementOrBundle != null) && (!that.statementOrBundle.isEmpty()))
             ? that.getStatementOrBundle()
             : null);
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "statementOrBundle", lhsStatementOrBundle),
         LocatorUtils.property(thatLocator, "statementOrBundle", rhsStatementOrBundle),
         lhsStatementOrBundle,
         rhsStatementOrBundle)) {
       return false;
     }
   }
   return true;
 }
Exemplo n.º 2
0
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof Document)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final Document that = ((Document) object);
   equalsBuilder.append(this.getStatementOrBundle(), that.getStatementOrBundle());
 }