If you think the Android project Android-Fast-ImageLoader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.sunny.threadpool;
//www.java2s.compublicclass CommandFactory {
boolean sortByLatest = false;
public CommandFactory(boolean sortByLatest) {
this.sortByLatest = sortByLatest;
}
public CommandFactory() {
this.sortByLatest = false;
}
public PriorityTask getTask(String category, IPriorityTask runnable,
int priority, ITaskHandler handler) {
PriorityTask task = new PriorityTask(category, sortByLatest, priority,
runnable, handler);
return task;
}
public PriorityTask getTask(String category, IPriorityTask runnable,
ITaskHandler handler) {
PriorityTask task = new PriorityTask(category, sortByLatest, runnable,
handler);
return task;
}
}