public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFCrmRamClusterId32Gen) { CFCrmRamClusterId32Gen rhs = (CFCrmRamClusterId32Gen) obj; if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } { short lhsSliceId = getRequiredSliceId(); short rhsSliceId = rhs.getRequiredSliceId(); if (lhsSliceId < rhsSliceId) { return (-1); } else if (lhsSliceId > rhsSliceId) { return (1); } } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, "CFCrmClusterId32Gen"); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFCrmRamClusterId32Gen) { CFCrmRamClusterId32Gen rhs = (CFCrmRamClusterId32Gen) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredSliceId() != rhs.getRequiredSliceId()) { return (false); } return (true); } else { return (false); } }