@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(); }
@Override public void merge(Rule entity) { this.title = entity.getTitle(); this.content = entity.getContent(); }