/** {@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; }
/** {@inheritDoc} */ public ModOption clone() { ModOption result = new ModOption(getSpecification()); result.setId(this.getId()); result.value = this.value; return result; }