LongSparseArray

Class of android.util · LongSparseArray.java · Android's reference

public class LongSparseArray<E> implements Cloneable

Objects by long key, in key order.

Constructors

public LongSparseArray() empty body source
public LongSparseArray(int capacity) source

Methods

public E get(long key) source
public E get(long key, E def) source
public void delete(long key) source
public void remove(long key) source
public void removeAt(int index) source
public void put(long key, E value) source
public int size() source
public long keyAt(int index) source
public E valueAt(int index) source
public void setValueAt(int index, E value) source
public int indexOfValue(E value) source
public int indexOfKey(long key) source
public void clear() source
public void append(long key, E value) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.