Code example for Queue

Methods: peek

0
	public Progress getProgress() { 
		return progress;
	} 
 
	public Runnable getCurrentTask() {
		return tasks.peek();
	} 
	 
	public String getCurrentTaskName() {
		Runnable task = getCurrentTask();
		if (!taskNames.containsKey(task))
			return ""; 
		return taskNames.get(task);
	} 
 
}