return false;
if (obj == this)
return true;
if (!(obj instanceof TagBarcode))
return false;
TagBarcode them = (TagBarcode) obj;
// If not saved, then compare resolved actual objects. Otherwise
// just compare IDs.
if (getId() == UNSAVED_ID
|| them.getId() == UNSAVED_ID) {
return getName().equals(them.getName()) &&
getSequence().equals(them.getSequence()) &&
getPlatformType().equals(them.getPlatformType()) &&
getStrategyName().equals(them.getStrategyName());
}
else {
return getId() == them.getId();
}
}