Merge "Add hashCode() in UiccAccessRule."

This commit is contained in:
Jiuyu Sun
2018-02-26 05:48:14 +00:00
committed by Android (Google) Code Review

View File

@@ -227,6 +227,15 @@ public final class UiccAccessRule implements Parcelable {
&& mAccessType == that.mAccessType;
}
@Override
public int hashCode() {
int result = 1;
result = 31 * result + Arrays.hashCode(mCertificateHash);
result = 31 * result + Objects.hashCode(mPackageName);
result = 31 * result + Objects.hashCode(mAccessType);
return result;
}
@Override
public String toString() {
return "cert: " + IccUtils.bytesToHexString(mCertificateHash) + " pkg: " +