public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFInternetMimeTypeHPKey) {
     CFInternetMimeTypeHPKey rhs = (CFInternetMimeTypeHPKey) obj;
     if (getRequiredMimeTypeId() != rhs.getRequiredMimeTypeId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFInternetMimeTypePKey) {
     CFInternetMimeTypePKey rhs = (CFInternetMimeTypePKey) obj;
     if (getRequiredMimeTypeId() != rhs.getRequiredMimeTypeId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFInternetMimeTypeHBuff) {
     CFInternetMimeTypeHBuff rhs = (CFInternetMimeTypeHBuff) obj;
     if (getRequiredMimeTypeId() != rhs.getRequiredMimeTypeId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFInternetMimeTypeBuff) {
     CFInternetMimeTypeBuff rhs = (CFInternetMimeTypeBuff) obj;
     if (getRequiredMimeTypeId() != rhs.getRequiredMimeTypeId()) {
       return (false);
     }
     return (true);
   } else {
     return (false);
   }
 }
 public int compareTo(Object obj) {
   if (obj == null) {
     return (-1);
   } else if (obj instanceof CFInternetMimeTypeHPKey) {
     CFInternetMimeTypeHPKey rhs = (CFInternetMimeTypeHPKey) obj;
     if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
       return (-1);
     } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFInternetMimeTypePKey) {
     CFInternetMimeTypePKey rhs = (CFInternetMimeTypePKey) obj;
     if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
       return (-1);
     } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFInternetMimeTypeBuff) {
     CFInternetMimeTypeBuff rhs = (CFInternetMimeTypeBuff) obj;
     if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
       return (-1);
     } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFInternetMimeTypeHBuff) {
     CFInternetMimeTypeHBuff rhs = (CFInternetMimeTypeHBuff) obj;
     if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
       return (-1);
     } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
       return (1);
     }
     return (0);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(
             getClass(),
             "compareTo",
             "obj",
             obj,
             "CFInternetMimeTypePKey, CFInternetMimeTypeBuff");
   }
 }