Code example for HashSet

Methods: remove

0
        mListeners.add(listener);
    } 
 
    @Override 
    public void unregisterOnDateChangedListener(OnDateChangedListener listener) {
        mListeners.remove(listener);
    } 
 
    /** 
     * Try to vibrate. To prevent this becoming a single continuous vibration, nothing will 
     * happen if we have vibrated very recently. 
     */ 
    @Override 
    public void tryVibrate() { 
        if (mVibrator != null) {
            long now = SystemClock.uptimeMillis();
            // We want to try to vibrate each individual tick discretely. 
            if (now - mLastVibrate >= 125) {
                mVibrator.vibrate(5);
                mLastVibrate = now;
            }