public int compareTo(Object obj) {
   if (obj == null) {
     return (-1);
   } else if (obj instanceof CFAsteriskRamClusterId64Gen) {
     CFAsteriskRamClusterId64Gen rhs = (CFAsteriskRamClusterId64Gen) 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, "CFAsteriskClusterId64Gen");
   }
 }
 public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFAsteriskRamClusterId64Gen) {
     CFAsteriskRamClusterId64Gen rhs = (CFAsteriskRamClusterId64Gen) obj;
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getRequiredSliceId() != rhs.getRequiredSliceId()) {
       return (false);
     }
     return (true);
   } else {
     return (false);
   }
 }