示例#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();
 }
示例#2
0
 public int compareTo(StoragePlugin storagePlugin) {
   return new CompareToBuilder()
       .append(getOrder(), storagePlugin.getOrder())
       .append(getId(), storagePlugin.getId())
       .toComparison();
 }