Exemple #1
0
 @Override
 public boolean equals(Object obj) {
   if (!(obj instanceof Rule)) {
     return false;
   }
   if (this == obj) {
     return true;
   }
   Rule other = (Rule) obj;
   return new EqualsBuilder()
       .append(pluginName, other.getRepositoryKey())
       .append(key, other.getKey())
       .isEquals();
 }
Exemple #2
0
 @Override
 public void merge(Rule entity) {
   this.title = entity.getTitle();
   this.content = entity.getContent();
 }