OSDN Git Service

[AWARE] Make PeerHandle comparable/hashable
authorEtan Cohen <etancohen@google.com>
Mon, 6 Nov 2017 15:58:15 +0000 (07:58 -0800)
committerEtan Cohen <etancohen@google.com>
Thu, 30 Nov 2017 23:56:37 +0000 (23:56 +0000)
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

wifi/java/android/net/wifi/aware/PeerHandle.java

index 1b0aba1..b525212 100644 (file)
@@ -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;