diff --git a/core/java/android/util/LongSparseArray.java b/core/java/android/util/LongSparseArray.java index 63e8c25d278b3..d6e116f21e3fe 100644 --- a/core/java/android/util/LongSparseArray.java +++ b/core/java/android/util/LongSparseArray.java @@ -39,6 +39,12 @@ import com.android.internal.util.ArrayUtils; * a single garbage collection step of all removed entries. This garbage collection will * need to be performed at any time the array needs to be grown or the the map size or * entry values are retrieved.
+ * + *It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
* LongSparseArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
* LongSparseArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.
It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
* SparseLongArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
* SparseLongArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.
It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
* SparseArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
* SparseArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.
It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
- * SparseBooleanArray stores.
+ * SparseBooleanArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
- * SparseBooleanArray stores.
+ * SparseBooleanArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.
It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
- * SparseIntArray stores.
+ * SparseIntArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
- * SparseIntArray stores.
+ * SparseIntArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.
It is possible to iterate over the items in this container using
+ * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using
+ * keyAt(int) with ascending values of the index will return the
+ * keys in ascending order, or the values corresponding to the keys in ascending
+ * order in the case of valueAt(int).
0...size()-1, returns
* the key from the indexth key-value mapping that this
* SparseLongArray stores.
+ *
+ * The keys corresponding to indices in ascending order are guaranteed to
+ * be in ascending order, e.g., keyAt(0) will return the
+ * smallest key and keyAt(size()-1) will return the largest
+ * key.
0...size()-1, returns
* the value from the indexth key-value mapping that this
* SparseLongArray stores.
+ *
+ * The values corresponding to indices in ascending order are guaranteed
+ * to be associated with keys in ascending order, e.g.,
+ * valueAt(0) will return the value associated with the
+ * smallest key and valueAt(size()-1) will return the value
+ * associated with the largest key.