/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }