Merge "Implement SessionHandle.hashCode()"
This commit is contained in:
@@ -19,6 +19,8 @@ package android.uwb;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@@ -72,6 +74,11 @@ public final class SessionHandle implements Parcelable {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(mId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SessionHandle [id=" + mId + "]";
|
||||
|
||||
Reference in New Issue
Block a user