Code example for ConcurrentLinkedQueue

Methods: isEmpty

0
		mDoneTimeout.removeMessages(MSG_DONE);
		mDoneTimeout.sendEmptyMessageDelayed(MSG_DONE, 5000);
	} 
 
	private void stopIfQueuesEmpty() { 
		if (mSyncQueue.isEmpty() && toScan.isEmpty()) {
			this.stopSelf();
		} 
	} 
 
	private class ScanQueueItem { 
		public Uri castMediaUri;
		public String contentType;
 
		public ScanQueueItem(Uri castMediaUri, String contentType) {
			this.castMediaUri = castMediaUri;
			this.contentType = contentType;
		} 
	} 
 
Connect your IDE to all the code out there  Get Codota for Java