List of usage examples for android.util LongSparseArray valueAt
@SuppressWarnings("unchecked") public E valueAt(int index)
0...size()-1
, returns the value from the index
th key-value mapping that this LongSparseArray stores. From source file:net.sf.sprockets.util.SparseArrays.java
/** * Get the values of the LongSparseArray. *//*ww w . j a va2 s. com*/ public static <E> List<E> values(LongSparseArray<E> array) { int size = array.size(); List<E> vals = new ArrayList<>(size); for (int i = 0; i < size; i++) { vals.add(array.valueAt(i)); } return vals; }