OSDN Git Service

Removing unused method indexOfValueByValue
authorSuprabh Shukla <suprabh@google.com>
Thu, 23 Mar 2017 23:09:27 +0000 (16:09 -0700)
committerSuprabh Shukla <suprabh@google.com>
Fri, 24 Mar 2017 01:22:05 +0000 (01:22 +0000)
The method was confusing and not used by anyone. Same functionality can
be implemented trivially in the client code.

Test: N/A

Bug: 35765468
Change-Id: Ia019088cd023c62d83760d9ebe883f7559a43375

api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/util/LongSparseArray.java
core/java/android/util/SparseArray.java

index 235a4a6..84ceecc 100644 (file)
@@ -43205,7 +43205,6 @@ package android.util {
     method public E get(long, E);
     method public int indexOfKey(long);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public long keyAt(int);
     method public void put(long, E);
     method public void remove(long);
@@ -43408,7 +43407,6 @@ package android.util {
     method public E get(int, E);
     method public int indexOfKey(int);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public int keyAt(int);
     method public void put(int, E);
     method public void remove(int);
index abdcaaa..f327d86 100644 (file)
@@ -46668,7 +46668,6 @@ package android.util {
     method public E get(long, E);
     method public int indexOfKey(long);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public long keyAt(int);
     method public void put(long, E);
     method public void remove(long);
@@ -46871,7 +46870,6 @@ package android.util {
     method public E get(int, E);
     method public int indexOfKey(int);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public int keyAt(int);
     method public void put(int, E);
     method public void remove(int);
index 3fb42a4..7a69eb1 100644 (file)
@@ -43401,7 +43401,6 @@ package android.util {
     method public E get(long, E);
     method public int indexOfKey(long);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public long keyAt(int);
     method public void put(long, E);
     method public void remove(long);
@@ -43604,7 +43603,6 @@ package android.util {
     method public E get(int, E);
     method public int indexOfKey(int);
     method public int indexOfValue(E);
-    method public int indexOfValueByValue(E);
     method public int keyAt(int);
     method public void put(int, E);
     method public void remove(int);
index 58ad2fd..9ba0f5d 100644 (file)
@@ -315,6 +315,7 @@ public class LongSparseArray<E> implements Cloneable {
      * and that multiple keys can map to the same value and this will
      * find only one of them.
      * <p>Note also that this method uses {@code equals} unlike {@code indexOfValue}.
+     * @hide
      */
     public int indexOfValueByValue(E value) {
         if (mGarbage) {
index c766660..b3400ef 100644 (file)
@@ -363,6 +363,7 @@ public class SparseArray<E> implements Cloneable {
      * and that multiple keys can map to the same value and this will
      * find only one of them.
      * <p>Note also that this method uses {@code equals} unlike {@code indexOfValue}.
+     * @hide
      */
     public int indexOfValueByValue(E value) {
         if (mGarbage) {