public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecuritySecUserByEMConfIdxKey) { CFSecuritySecUserByEMConfIdxKey rhs = (CFSecuritySecUserByEMConfIdxKey) obj; if (getOptionalEMailConfirmationUuid() != null) { if (rhs.getOptionalEMailConfirmationUuid() != null) { if (!getOptionalEMailConfirmationUuid().equals(rhs.getOptionalEMailConfirmationUuid())) { return (false); } } } else { if (rhs.getOptionalEMailConfirmationUuid() != null) { return (false); } } return (true); } else if (obj instanceof CFSecuritySecUserBuff) { CFSecuritySecUserBuff rhs = (CFSecuritySecUserBuff) obj; if (getOptionalEMailConfirmationUuid() != null) { if (rhs.getOptionalEMailConfirmationUuid() != null) { if (!getOptionalEMailConfirmationUuid().equals(rhs.getOptionalEMailConfirmationUuid())) { return (false); } } } else { if (rhs.getOptionalEMailConfirmationUuid() != null) { return (false); } } return (true); } else { return (false); } }
public int compareTo(Object obj) { if (obj == null) { return (1); } else if (obj instanceof CFSecuritySecUserByEMConfIdxKey) { CFSecuritySecUserByEMConfIdxKey rhs = (CFSecuritySecUserByEMConfIdxKey) obj; if (getOptionalEMailConfirmationUuid() != null) { if (rhs.getOptionalEMailConfirmationUuid() != null) { int cmp = getOptionalEMailConfirmationUuid().compareTo(rhs.getOptionalEMailConfirmationUuid()); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalEMailConfirmationUuid() != null) { return (-1); } } return (0); } else if (obj instanceof CFSecuritySecUserBuff) { CFSecuritySecUserBuff rhs = (CFSecuritySecUserBuff) obj; if (getOptionalEMailConfirmationUuid() != null) { if (rhs.getOptionalEMailConfirmationUuid() != null) { int cmp = getOptionalEMailConfirmationUuid().compareTo(rhs.getOptionalEMailConfirmationUuid()); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalEMailConfirmationUuid() != null) { return (-1); } } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }