Package org.eclipse.compare.internal
Class WorkQueue
java.lang.Object
org.eclipse.compare.internal.WorkQueue
A work queue maintains a list of tasks that need to be run.
If the same task is added multiple times, the last occurrence of
the task will be run(i.e. the task will be removed from it's
previous location and aded to the end of the queue.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(IRunnableWithProgress runnable) void
clear()
boolean
contains
(IRunnableWithProgress runnable) boolean
isEmpty()
remove()
boolean
remove
(IRunnableWithProgress runnable) int
size()
-
Constructor Details
-
WorkQueue
public WorkQueue()
-
-
Method Details
-
add
-
clear
public void clear() -
contains
-
isEmpty
public boolean isEmpty() -
remove
-
size
public int size() -
remove
-