I try not call size() on every iteration of a loop. In cases where the order of iteration doesn't matter (like this one), the idiom is:
```java
    for (int i = sparseBooleanArray.size(); --i >= 0; ) {
```