Code example for Queue

Methods: isEmpty

0
        } 
 
        if (mExpectedInterrupt) {
            throw new IllegalStateException("Expected call to #interrupt() not received");
        } 
        if (!mExpectedEvents.isEmpty()) {
            throw new IllegalStateException("Expected a call to onAccessibilityEvent() for "
                    + "events \"" + mExpectedEvents + "\" not received");
        } 
    } 
 
    /** 
     * Resets this instance so it can be reused. 
     */ 
    public void reset() { 
        mExpectedEvents.clear();
        mExpectedInterrupt = false;
        mReplaying = false;
    }