diff --git a/api/current.txt b/api/current.txt index 4d5ccdeedd63e..b400b34170deb 100644 --- a/api/current.txt +++ b/api/current.txt @@ -43235,7 +43235,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); @@ -43438,7 +43437,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); diff --git a/api/system-current.txt b/api/system-current.txt index ddb36a8f87104..844b897e4507b 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -46690,7 +46690,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); @@ -46893,7 +46892,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); diff --git a/api/test-current.txt b/api/test-current.txt index 9457bd6ca65d3..a73ac18ac0c7e 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -43441,7 +43441,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); @@ -43644,7 +43643,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); diff --git a/core/java/android/util/LongSparseArray.java b/core/java/android/util/LongSparseArray.java index 58ad2fd0c5867..9ba0f5da135e5 100644 --- a/core/java/android/util/LongSparseArray.java +++ b/core/java/android/util/LongSparseArray.java @@ -315,6 +315,7 @@ public class LongSparseArray implements Cloneable { * and that multiple keys can map to the same value and this will * find only one of them. *

Note also that this method uses {@code equals} unlike {@code indexOfValue}. + * @hide */ public int indexOfValueByValue(E value) { if (mGarbage) { diff --git a/core/java/android/util/SparseArray.java b/core/java/android/util/SparseArray.java index c76666069d18d..b3400ef538b89 100644 --- a/core/java/android/util/SparseArray.java +++ b/core/java/android/util/SparseArray.java @@ -363,6 +363,7 @@ public class SparseArray implements Cloneable { * and that multiple keys can map to the same value and this will * find only one of them. *

Note also that this method uses {@code equals} unlike {@code indexOfValue}. + * @hide */ public int indexOfValueByValue(E value) { if (mGarbage) {