From ed1cfed835b9e66e6c1268ac529be20ee6459def Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Mon, 25 Nov 2019 09:53:51 -0800 Subject: [PATCH] Address API feedback. Add @param and @return to new SparseArray.contains() method. Bug: N/A Test: N/A Change-Id: I81460524f29628a4ce1e47b1510c2887fa51717d --- core/java/android/util/SparseArray.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/util/SparseArray.java b/core/java/android/util/SparseArray.java index 484894f980234..d3367c10bff5c 100644 --- a/core/java/android/util/SparseArray.java +++ b/core/java/android/util/SparseArray.java @@ -106,6 +106,9 @@ public class SparseArray implements Cloneable { /** * Returns true if the key exists in the array. This is equivalent to * {@link #indexOfKey(int)} >= 0. + * + * @param key Potential key in the mapping + * @return true if the key is defined in the mapping */ public boolean contains(int key) { return indexOfKey(key) >= 0;