Code example for Deque

Methods: removeFirst

0
 
	@Override 
	public Snippet next() 
	{ 
		mCount++;
		File file = mWorkList.removeFirst();
		Snippet snippet = mFactory.createSnippet(file);
		return snippet;
	} 
 
	@Override 
	public void remove() 
	{ 
		throw new UnsupportedOperationException();
	} 
 
	private void addDirectoryFiles(File dir)
	{ 
		// sLog.debug("Scanning directory: " + dir); 
		File[] files = dir.listFiles(new FileFilter()
		{