Merge "Implement SessionHandle.hashCode()"
This commit is contained in:
@@ -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 + "]";
|
||||||
|
|||||||
Reference in New Issue
Block a user