diff options
| author | 2023-06-12 22:01:16 +0000 | |
|---|---|---|
| committer | 2023-06-12 22:01:16 +0000 | |
| commit | c492c5515e39cbb6d8ada4cdbb3b554595eb563c (patch) | |
| tree | a979c33a64f1245852c5697699b8bddbda8c01e2 | |
| parent | 8b392e6a343ad8245a322227516a7d9abc6eb7a7 (diff) | |
| parent | 663fdde31fba6ff2c6c4da60ed165be471027919 (diff) | |
Merge "Revise API documentation for WifiSsidPolicy" into udc-dev am: 663fdde31f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23645303
Change-Id: I4585b64a099b12645991b2d59038cde73ea38fd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | core/java/android/app/admin/WifiSsidPolicy.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/app/admin/WifiSsidPolicy.java b/core/java/android/app/admin/WifiSsidPolicy.java index 3fefe4bda331..ed53967b86e4 100644 --- a/core/java/android/app/admin/WifiSsidPolicy.java +++ b/core/java/android/app/admin/WifiSsidPolicy.java @@ -135,6 +135,10 @@ public final class WifiSsidPolicy implements Parcelable { dest.writeArraySet(mSsids); } + /** + * Two instances of WifiSsidPolicy is considered equal if they have + * the same WifiSsidPolicyType and the same set of WifiSsids + */ @Override public boolean equals(Object thatObject) { if (this == thatObject) { @@ -147,6 +151,9 @@ public final class WifiSsidPolicy implements Parcelable { return mPolicyType == that.mPolicyType && Objects.equals(mSsids, that.mSsids); } + /** + * Returns the hash code value of WifiSsidPolicyType and WifiSsid set + */ @Override public int hashCode() { return Objects.hash(mPolicyType, mSsids); |