Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d49c0dd authored by Etan Cohen's avatar Etan Cohen
Browse files

[AWARE] Make PeerHandle comparable/hashable

Add public equals()/hash() methods to PeerHandle. Allows the handle to
be used across multiple calls/sessions.

Bug: 68931709
Test: builds, unit test, integration test
Change-Id: Idc59269d4275181ed6d9a793213c681dc4e98134
parent fb922ea2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ public class PeerHandle {
    /** @hide */
    public int peerId;

    /** @hide RTT_API */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
@@ -47,7 +46,6 @@ public class PeerHandle {
        return peerId == ((PeerHandle) o).peerId;
    }

    /** @hide RTT_API */
    @Override
    public int hashCode() {
        return peerId;