Code example for HashSet

Methods: isEmpty, remove, size

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());
    } 
}