Code example for HashSet

Methods: isEmptyremovesize

0
        if (DEBUGV) Log.v(TAG, "acquire wakelock: holder count="
                + mHolders.size());
    } 
 
    synchronized void release(Object holder) {
        mHolders.remove(holder);
        if ((mWakeLock != null) && mHolders.isEmpty()
                && mWakeLock.isHeld()) {
            mWakeLock.release();
        } 
        if (DEBUGV) Log.v(TAG, "release wakelock: holder count="
                + mHolders.size());
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java