@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (this == obj) { return true; } StoragePlugin other = (StoragePlugin) obj; return new EqualsBuilder().append(getId(), other.getId()).isEquals(); }
public int compareTo(StoragePlugin storagePlugin) { return new CompareToBuilder() .append(getOrder(), storagePlugin.getOrder()) .append(getId(), storagePlugin.getId()) .toComparison(); }