/** * generates a new unique ExtendedEntityManagerID * @return unique ExtendedEntityManagerID */ public static ExtendedEntityManagerKey extendedEntityManagerID() { return new ExtendedEntityManagerKey(); }
@Override public int hashCode() { // return hashCode of the ExtendedEntityManagerKey return ID != null ? ID.hashCode() : 0; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || ! (o instanceof ExtendedEntityManagerKey)) return false; ExtendedEntityManagerKey that = (ExtendedEntityManagerKey) o; if (ID != null ? !ID.equals(that.getKey()) : that.getKey() != null) return false; return true; }
/** * Check if this object's UUID is equal to the otherObject's UUID * * @param otherObject * @return */ @Override public boolean equals(Object otherObject) { if (this == otherObject) return true; if (otherObject == null || getClass() != otherObject.getClass()) return false; ExtendedEntityManager that = (ExtendedEntityManager) otherObject; if (!ID.equals(that.ID)) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || ! (o instanceof ExtendedEntityManagerKey)) return false; ExtendedEntityManagerKey that = (ExtendedEntityManagerKey) o; if (ID != null ? !ID.equals(that.getKey()) : that.getKey() != null) return false; return true; }
/** * Check if this object's UUID is equal to the otherObject's UUID * * @param otherObject * @return */ @Override public boolean equals(Object otherObject) { if (this == otherObject) return true; if (otherObject == null || getClass() != otherObject.getClass()) return false; ExtendedEntityManager that = (ExtendedEntityManager) otherObject; if (!ID.equals(that.ID)) return false; return true; }
@Override public int hashCode() { // return hashCode of the ExtendedEntityManagerKey return ID != null ? ID.hashCode() : 0; }
/** * generates a new unique ExtendedEntityManagerID * @return unique ExtendedEntityManagerID */ public static ExtendedEntityManagerKey extendedEntityManagerID() { return new ExtendedEntityManagerKey(); }