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

Commit 78720f8a authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by android-build-merger
Browse files

Merge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev

am: 407809c9

Change-Id: If36f772a171b4c909878509cefc466bd09ffc142
parents a6cadd4c 407809c9
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -32,4 +32,22 @@ public class PeerHandle {

    /** @hide */
    public int peerId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (!(o instanceof PeerHandle)) {
            return false;
        }

        return peerId == ((PeerHandle) o).peerId;
    }

    @Override
    public int hashCode() {
        return peerId;
    }
}