Пример #1
0
 /** {@inheritDoc} */
 @Override
 public boolean equals(Object other) {
   if (other instanceof ModOption) {
     ModOption mod = (ModOption) other;
     return (value == null)
         ? mod.getValue() == null
         : (mod.getValue() == null) ? false : value.getId().equals(mod.getValue().getId());
   }
   return false;
 }
Пример #2
0
 /** {@inheritDoc} */
 public ModOption clone() {
   ModOption result = new ModOption(getSpecification());
   result.setId(this.getId());
   result.value = this.value;
   return result;
 }