Merge "Implement SessionHandle.hashCode()"

This commit is contained in:
Brian Stack
2021-02-08 23:09:27 +00:00
committed by Gerrit Code Review

View File

@@ -19,6 +19,8 @@ package android.uwb;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import java.util.Objects;
/** /**
* @hide * @hide
*/ */
@@ -72,6 +74,11 @@ public final class SessionHandle implements Parcelable {
return false; return false;
} }
@Override
public int hashCode() {
return Objects.hashCode(mId);
}
@Override @Override
public String toString() { public String toString() {
return "SessionHandle [id=" + mId + "]"; return "SessionHandle [id=" + mId + "]";