/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ShortIdentity other = (ShortIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { IntIdentity other = (IntIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals(Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ByteIdentity other = (ByteIdentity)obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { LongIdentity other = (LongIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { IntIdentity other = (IntIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { CharIdentity other = (CharIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals(Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ByteIdentity other = (ByteIdentity)obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { LongIdentity other = (LongIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { CharIdentity other = (CharIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ShortIdentity other = (ShortIdentity) obj; return key == other.key; } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ @Override public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ObjectIdentity other = (ObjectIdentity) obj; return keyAsObject.equals(other.keyAsObject); } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { StringIdentity other = (StringIdentity) obj; return keyAsObject.equals(other.keyAsObject); } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { StringIdentity other = (StringIdentity) obj; return keyAsObject.equals(other.keyAsObject); } }
/** Determine if the other object represents the same object id. * @param obj the other object * @return true if both objects represent the same object id */ @Override public boolean equals (Object obj) { if (this == obj) { return true; } else if (!super.equals (obj)) { return false; } else { ObjectIdentity other = (ObjectIdentity) obj; return keyAsObject.equals(other.keyAsObject); } }