Code example for BitSet

Methods: cardinality, set

0
  } 
 
  void onLoadFinished(final Loader<Object> loader, final Object data) {
    final int index = loaderIndexMapping.get(loader);
    results[index] = data;
    resultsSet.set(index);
 
    if (resultsSet.cardinality() == results.length) {
      callbacks.onLoadFinished(results);
    } 
  } 
 
  void onLoaderReset(final Loader<Object> loader) {
    final Integer index = loaderIndexMapping.get(loader);
    if (index != null) {
      results[index] = null;
      loaderIndexMapping.remove(loader);
    } 
  } 
 
  /** Another callbacks wrapper. */