Code example for HashSet

Methods: clear

0
    public LoaderManager getDelegate() {
        return mDelegate;
    } 
 
    public void reset() { 
        mFinishedLoaders.clear();
    } 
 
    /** 
     * Waits for the specified loaders to complete loading. 
     * <p> 
     * If one of the loaders has already completed since the last call to {@link #reset()}, it will 
     * not wait for it to complete again. 
     */ 
    @VisibleForTesting 
    /*package*/ synchronized void waitForLoaders(int... loaderIds) {
        List<Loader<?>> loaders = new ArrayList<Loader<?>>(loaderIds.length);
        for (int loaderId : loaderIds) {
            if (mFinishedLoaders.contains(loaderId)) {
                // This loader has already completed since the last reset, do not wait for it. 
                continue;