Android Utililty Methods SparseBooleanArray Search

List of utility methods to do SparseBooleanArray Search

Description

The list of methods to do SparseBooleanArray Search are organized into topic(s).

Method

ListgetIndexesFromSparseBooleanArray( SparseBooleanArray array, boolean value)
Retrieves the existing integer indexes coming from provided SparseBooleanArray under which there is certain boolean value set.
List<Integer> result = new ArrayList<Integer>();
for (int i = 0; i < array.size(); i++) {
    if (array.valueAt(i) == value) {
        result.add(array.keyAt(i));
return result;