/** * Compares all member variables of this object with the other object. * Returns only true, if all are equal in both objects. * * @param otherObject * The other object to compare to. * @return True, if other is an instance of this class and all member * variables of both objects are equal. False, otherwise. * @preconditions * @postconditions */ @Override public boolean equals(Object otherObject) { if (this == otherObject) { return true; } else if (!(otherObject instanceof Data)) { return false; } Data other = (Data) otherObject; return super.equals(other) && this.application.equals(other.application) && this.objectID.equals(other.objectID) && this.value.equals(other.value); }
/** * Compares all member variables of this object with the other object. * Returns only true, if all are equal in both objects. * * @param otherObject * The other object to compare to. * @return True, if other is an instance of this class and all member * variables of both objects are equal. False, otherwise. * @preconditions * @postconditions */ @Override public boolean equals(Object otherObject) { if (this == otherObject) { return true; } else if (!(otherObject instanceof Storage)) { return false; } Storage other = (Storage) otherObject; return super.equals(other) && this.token.equals(other.token) && this.private_.equals(other.private_) && this.modifiable.equals(other.modifiable) && this.label.equals(other.label); }
/** * Compares all member variables of this object with the other object. * Returns only true, if all are equal in both objects. * * @param otherObject * The other object to compare to. * @return True, if other is an instance of this class and all member * variables of both objects are equal. False, otherwise. * @preconditions * @postconditions */ @Override public boolean equals(Object otherObject) { if (this == otherObject) { return true; } else if (!(otherObject instanceof WTLSCertificate)) { return false; } WTLSCertificate other = (WTLSCertificate) otherObject; return super.equals(other) && this.subject.equals(other.subject) && this.issuer.equals(other.issuer) && this.value.equals(other.value) && this.url.equals(other.url) && this.hashOfSubjectPublicKey.equals( other.hashOfSubjectPublicKey) && this.hashOfIssuerPublicKey.equals( other.hashOfIssuerPublicKey); }
/** * Compares all member variables of this object with the other object. * Returns only true, if all are equal in both objects. * * @param otherObject * The other object to compare to. * @return True, if other is an instance of this class and all member * variables of both objects are equal. False, otherwise. * @preconditions * @postconditions */ @Override public boolean equals(Object otherObject) { if (this == otherObject) { return true; } else if (!(otherObject instanceof X509PublicKeyCertificate)) { return false; } X509PublicKeyCertificate other = (X509PublicKeyCertificate) otherObject; return super.equals(other) && this.subject.equals(other.subject) && this.id.equals(other.id) && this.issuer.equals(other.issuer) && this.serialNumber.equals(other.serialNumber) && this.value.equals(other.value) && this.url.equals(other.url) && this.hashOfSubjectPublicKey.equals(other.hashOfSubjectPublicKey) && this.hashOfIssuerPublicKey.equals(other.hashOfIssuerPublicKey) && this.javaMidpSecurityDomain.equals(other.javaMidpSecurityDomain); }