public void setFloatDefBuff(CFBamFloatDefHBuff src) { super.setAtomBuff(src); setOptionalInitValue(src.getOptionalInitValue()); setOptionalDefaultValue(src.getOptionalDefaultValue()); setOptionalMinValue(src.getOptionalMinValue()); setOptionalMaxValue(src.getOptionalMaxValue()); setOptionalNullValue(src.getOptionalNullValue()); setOptionalUnknownValue(src.getOptionalUnknownValue()); }
public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFBamFloatDefBuff) { CFBamFloatDefBuff rhs = (CFBamFloatDefBuff) obj; int retval = super.compareTo(rhs); if (retval != 0) { return (retval); } if (getOptionalInitValue() != null) { Float lhsInitValue = getOptionalInitValue(); if (rhs.getOptionalInitValue() != null) { Float rhsInitValue = rhs.getOptionalInitValue(); int cmp = lhsInitValue.compareTo(rhsInitValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalInitValue() != null) { return (-1); } } if (getOptionalDefaultValue() != null) { Float lhsDefaultValue = getOptionalDefaultValue(); if (rhs.getOptionalDefaultValue() != null) { Float rhsDefaultValue = rhs.getOptionalDefaultValue(); int cmp = lhsDefaultValue.compareTo(rhsDefaultValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalDefaultValue() != null) { return (-1); } } if (getOptionalMinValue() != null) { Float lhsMinValue = getOptionalMinValue(); if (rhs.getOptionalMinValue() != null) { Float rhsMinValue = rhs.getOptionalMinValue(); int cmp = lhsMinValue.compareTo(rhsMinValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalMinValue() != null) { return (-1); } } if (getOptionalMaxValue() != null) { Float lhsMaxValue = getOptionalMaxValue(); if (rhs.getOptionalMaxValue() != null) { Float rhsMaxValue = rhs.getOptionalMaxValue(); int cmp = lhsMaxValue.compareTo(rhsMaxValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalMaxValue() != null) { return (-1); } } if (getOptionalNullValue() != null) { Float lhsNullValue = getOptionalNullValue(); if (rhs.getOptionalNullValue() != null) { Float rhsNullValue = rhs.getOptionalNullValue(); int cmp = lhsNullValue.compareTo(rhsNullValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalNullValue() != null) { return (-1); } } if (getOptionalUnknownValue() != null) { Float lhsUnknownValue = getOptionalUnknownValue(); if (rhs.getOptionalUnknownValue() != null) { Float rhsUnknownValue = rhs.getOptionalUnknownValue(); int cmp = lhsUnknownValue.compareTo(rhsUnknownValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalUnknownValue() != null) { return (-1); } } return (0); } else if (obj instanceof CFBamValuePKey) { CFBamValuePKey rhs = (CFBamValuePKey) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamValueHPKey) { CFBamValueHPKey rhs = (CFBamValueHPKey) obj; { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamFloatDefHBuff) { CFBamFloatDefHBuff rhs = (CFBamFloatDefHBuff) obj; int retval = super.compareTo(rhs); if (retval != 0) { return (retval); } if (getOptionalInitValue() != null) { Float lhsInitValue = getOptionalInitValue(); if (rhs.getOptionalInitValue() != null) { Float rhsInitValue = rhs.getOptionalInitValue(); int cmp = lhsInitValue.compareTo(rhsInitValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalInitValue() != null) { return (-1); } } if (getOptionalDefaultValue() != null) { Float lhsDefaultValue = getOptionalDefaultValue(); if (rhs.getOptionalDefaultValue() != null) { Float rhsDefaultValue = rhs.getOptionalDefaultValue(); int cmp = lhsDefaultValue.compareTo(rhsDefaultValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalDefaultValue() != null) { return (-1); } } if (getOptionalMinValue() != null) { Float lhsMinValue = getOptionalMinValue(); if (rhs.getOptionalMinValue() != null) { Float rhsMinValue = rhs.getOptionalMinValue(); int cmp = lhsMinValue.compareTo(rhsMinValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalMinValue() != null) { return (-1); } } if (getOptionalMaxValue() != null) { Float lhsMaxValue = getOptionalMaxValue(); if (rhs.getOptionalMaxValue() != null) { Float rhsMaxValue = rhs.getOptionalMaxValue(); int cmp = lhsMaxValue.compareTo(rhsMaxValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalMaxValue() != null) { return (-1); } } if (getOptionalNullValue() != null) { Float lhsNullValue = getOptionalNullValue(); if (rhs.getOptionalNullValue() != null) { Float rhsNullValue = rhs.getOptionalNullValue(); int cmp = lhsNullValue.compareTo(rhsNullValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalNullValue() != null) { return (-1); } } if (getOptionalUnknownValue() != null) { Float lhsUnknownValue = getOptionalUnknownValue(); if (rhs.getOptionalUnknownValue() != null) { Float rhsUnknownValue = rhs.getOptionalUnknownValue(); int cmp = lhsUnknownValue.compareTo(rhsUnknownValue); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalUnknownValue() != null) { return (-1); } } return (0); } else { int retval = super.compareTo(obj); return (retval); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamFloatDefBuff) { CFBamFloatDefBuff rhs = (CFBamFloatDefBuff) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalInitValue() != null) { if (rhs.getOptionalInitValue() != null) { if (!getOptionalInitValue().equals(rhs.getOptionalInitValue())) { return (false); } } } else { if (rhs.getOptionalInitValue() != null) { return (false); } } if (getOptionalDefaultValue() != null) { if (rhs.getOptionalDefaultValue() != null) { if (!getOptionalDefaultValue().equals(rhs.getOptionalDefaultValue())) { return (false); } } } else { if (rhs.getOptionalDefaultValue() != null) { return (false); } } if (getOptionalMinValue() != null) { if (rhs.getOptionalMinValue() != null) { if (!getOptionalMinValue().equals(rhs.getOptionalMinValue())) { return (false); } } } else { if (rhs.getOptionalMinValue() != null) { return (false); } } if (getOptionalMaxValue() != null) { if (rhs.getOptionalMaxValue() != null) { if (!getOptionalMaxValue().equals(rhs.getOptionalMaxValue())) { return (false); } } } else { if (rhs.getOptionalMaxValue() != null) { return (false); } } if (getOptionalNullValue() != null) { if (rhs.getOptionalNullValue() != null) { if (!getOptionalNullValue().equals(rhs.getOptionalNullValue())) { return (false); } } } else { if (rhs.getOptionalNullValue() != null) { return (false); } } if (getOptionalUnknownValue() != null) { if (rhs.getOptionalUnknownValue() != null) { if (!getOptionalUnknownValue().equals(rhs.getOptionalUnknownValue())) { return (false); } } } else { if (rhs.getOptionalUnknownValue() != null) { return (false); } } return (true); } else if (obj instanceof CFBamValuePKey) { CFBamValuePKey rhs = (CFBamValuePKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamFloatDefHBuff) { CFBamFloatDefHBuff rhs = (CFBamFloatDefHBuff) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalInitValue() != null) { if (rhs.getOptionalInitValue() != null) { if (!getOptionalInitValue().equals(rhs.getOptionalInitValue())) { return (false); } } } else { if (rhs.getOptionalInitValue() != null) { return (false); } } if (getOptionalDefaultValue() != null) { if (rhs.getOptionalDefaultValue() != null) { if (!getOptionalDefaultValue().equals(rhs.getOptionalDefaultValue())) { return (false); } } } else { if (rhs.getOptionalDefaultValue() != null) { return (false); } } if (getOptionalMinValue() != null) { if (rhs.getOptionalMinValue() != null) { if (!getOptionalMinValue().equals(rhs.getOptionalMinValue())) { return (false); } } } else { if (rhs.getOptionalMinValue() != null) { return (false); } } if (getOptionalMaxValue() != null) { if (rhs.getOptionalMaxValue() != null) { if (!getOptionalMaxValue().equals(rhs.getOptionalMaxValue())) { return (false); } } } else { if (rhs.getOptionalMaxValue() != null) { return (false); } } if (getOptionalNullValue() != null) { if (rhs.getOptionalNullValue() != null) { if (!getOptionalNullValue().equals(rhs.getOptionalNullValue())) { return (false); } } } else { if (rhs.getOptionalNullValue() != null) { return (false); } } if (getOptionalUnknownValue() != null) { if (rhs.getOptionalUnknownValue() != null) { if (!getOptionalUnknownValue().equals(rhs.getOptionalUnknownValue())) { return (false); } } } else { if (rhs.getOptionalUnknownValue() != null) { return (false); } } return (true); } else if (obj instanceof CFBamValueHPKey) { CFBamValueHPKey rhs = (CFBamValueHPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { boolean retval = super.equals(obj); return (retval); } }