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

Commit 407809c9 authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by Android (Google) Code Review
Browse files

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

parents 92609c7d 4454bda0
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;
    }
}