/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
public boolean equals(Object obj) { if (obj == null || (!(obj instanceof Timestamp))) return false; Timestamp that = (Timestamp) obj; if (this == that) return true; return (timestamp.equals(that.getTimestamp()) && signerCertPath.equals(that.getSignerCertPath())); } }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }
/** * Returns the hash code value for this {@code CodeSigner}. Returns the same * hash code for {@code CodeSigner}s that are equal to each other as * required by the general contract of {@link Object#hashCode}. * * @return the hash code value for this {@code CodeSigner}. * @see Object#equals(Object) * @see CodeSigner#equals(Object) */ @Override public int hashCode() { if (hash == 0) { hash = signerCertPath.hashCode() ^ (timestamp == null ? 0 : timestamp.hashCode()); } return hash; }
/** * Compares the specified object with this {@code CodeSigner} for equality. * Returns {@code true} if the specified object is also an instance of * {@code CodeSigner}, the two {@code CodeSigner} encapsulate the same * certificate path and the same time stamp, if present in both. * * @param obj * object to be compared for equality with this {@code * CodeSigner}. * @return {@code true} if the specified object is equal to this {@code * CodeSigner}, otherwise {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CodeSigner) { CodeSigner that = (CodeSigner) obj; if (!signerCertPath.equals(that.signerCertPath)) { return false; } return timestamp == null ? that.timestamp == null : timestamp .equals(that.timestamp); } return false; }