Code example for LinkedList

0
public abstract class MockAccessibilityService extends AccessibilityService {
 
    /** 
     * The event this service expects to receive. 
     */ 
    private final Queue<AccessibilityEvent> mExpectedEvents = new LinkedList<AccessibilityEvent>();
 
    /** 
     * Interruption call this service expects to receive. 
     */ 
    private boolean mExpectedInterrupt;
 
    /** 
     * Flag if the mock is currently replaying. 
     */ 
    private boolean mReplaying;
 
    /** 
     * Flag if the system is bound as a client to this service. 
     */ 
    private boolean mIsSystemBoundAsClient;