Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 public int compareTo(StoragePlugin storagePlugin) {
   return new CompareToBuilder()
       .append(getOrder(), storagePlugin.getOrder())
       .append(getId(), storagePlugin.getId())
       .toComparison();
 }