List of utility methods to do SparseBooleanArray Search
List | getIndexesFromSparseBooleanArray( 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; |