/** * Makes a clone of this intact object. * * @return a cloned version of the current instance. * * @throws CloneNotSupportedException to indicate that an instance cannot be cloned. */ @Override public Object clone() throws CloneNotSupportedException { IntactObjectImpl copy = ( IntactObjectImpl ) super.clone(); // Reset the AC. copy.setAc( null ); // Sets the dates to the current date. copy.setCreated( null ); copy.setUpdated( null ); return copy; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (key != null ? key.hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Application that = (Application) o; if (key != null ? !key.equals(that.key) : that.key != null) return false; return true; }
@Override public String toString() { return super.toString() + "; owner=" + owner.getAc(); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Application that = (Application) o; if (key != null ? !key.equals(that.key) : that.key != null) return false; return true; }
/** * Makes a clone of this intact object. * * @return a cloned version of the current instance. * * @throws CloneNotSupportedException to indicate that an instance cannot be cloned. */ @Override public Object clone() throws CloneNotSupportedException { IntactObjectImpl copy = ( IntactObjectImpl ) super.clone(); // Reset the AC. copy.setAc( null ); // Sets the dates to the current date. copy.setCreated( null ); copy.setUpdated( null ); return copy; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (key != null ? key.hashCode() : 0); return result; }
/** * Makes a clone of this intact object. * * @return a cloned version of the current instance. * * @throws CloneNotSupportedException to indicate that an instance cannot be cloned. */ @Override public Object clone() throws CloneNotSupportedException { IntactObjectImpl copy = ( IntactObjectImpl ) super.clone(); // Reset the AC. copy.setAc( null ); // Sets the dates to the current date. copy.setCreated( null ); copy.setUpdated( null ); return copy; }