Merge "Add hashCode() in UiccAccessRule."

am: 0da1f09f9b

Change-Id: I91b9c8e17d4480dbc6a27735e39a90f7c8e59c9d
This commit is contained in:
Holly Jiuyu Sun
2018-02-26 22:18:57 +00:00
committed by android-build-merger

View File

@@ -220,6 +220,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: " +