Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7fb8cda authored by Hyunho Shin's avatar Hyunho Shin Committed by Android (Google) Code Review
Browse files

Merge "Add the hashCode API to EuiccRulesAuthTable" into main

parents 8c23f0e8 41e92ba6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -242,6 +242,16 @@ public final class EuiccRulesAuthTable implements Parcelable {
                && Arrays.equals(mPolicyRuleFlags, that.mPolicyRuleFlags);
    }

    @Override
    public int hashCode() {
        int result = Arrays.hashCode(mPolicyRules);
        result = 31 * result + Arrays.hashCode(mPolicyRuleFlags);
        for (int i = 0; i < mCarrierIds.length; i++) {
            result = 31 * result + Arrays.hashCode(mCarrierIds[i]);
        }
        return result;
    }

    private EuiccRulesAuthTable(Parcel source) {
        mPolicyRules = source.createIntArray();
        int len = mPolicyRules.length;