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>
This commit is contained in:
Stephanie Bak
2023-06-12 22:01:16 +00:00
committed by Automerger Merge Worker

View File

@@ -135,6 +135,10 @@ public final class WifiSsidPolicy implements Parcelable {
dest.writeArraySet(mSsids); dest.writeArraySet(mSsids);
} }
/**
* Two instances of WifiSsidPolicy is considered equal if they have
* the same WifiSsidPolicyType and the same set of WifiSsids
*/
@Override @Override
public boolean equals(Object thatObject) { public boolean equals(Object thatObject) {
if (this == thatObject) { if (this == thatObject) {
@@ -147,6 +151,9 @@ public final class WifiSsidPolicy implements Parcelable {
return mPolicyType == that.mPolicyType && Objects.equals(mSsids, that.mSsids); return mPolicyType == that.mPolicyType && Objects.equals(mSsids, that.mSsids);
} }
/**
* Returns the hash code value of WifiSsidPolicyType and WifiSsid set
*/
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(mPolicyType, mSsids); return Objects.hash(mPolicyType, mSsids);