Exemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   DataToSignDTO other = (DataToSignDTO) obj;
   if (parameters == null) {
     if (other.parameters != null) {
       return false;
     }
   } else if (!parameters.equals(other.parameters)) {
     return false;
   }
   if (toSignDocument == null) {
     if (other.toSignDocument != null) {
       return false;
     }
   } else if (!toSignDocument.equals(other.toSignDocument)) {
     return false;
   }
   return true;
 }
Exemplo n.º 2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = (prime * result) + ((parameters == null) ? 0 : parameters.hashCode());
   result = (prime * result) + ((toSignDocument == null) ? 0 : toSignDocument.hashCode());
   return result;
 }