Code example for BlockingQueue

Methods: contains

0
 
    public final boolean hasCallbacks(Runnable r) {
        //        if (mHandler == null) { 
        //            return false; 
        //        } 
        return THREAD_POOL_EXECUTOR.getQueue().contains(r);
        //        return mHandler.hasCallbacks(r); 
    } 
 
    public final boolean hasMessages(int what) {
        if (mHandler == null) {
            return false; 
        } 
        return mHandler.hasMessages(what);
    } 
 
    public final boolean hasMessages(int what, Object object) {
        if (mHandler == null) {
            return false; 
        } 
        return mHandler.hasMessages(what, object);