Android Open Source - Android-Fast-ImageLoader Command Factory






From Project

Back to project page Android-Fast-ImageLoader.

License

The source code is released under:

Apache License

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;
//w  w  w. ja  v  a 2  s  . co  m
public class 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;
    }
}




Java Source Code List

com.sunny.cache.BaseLoadListener.java
com.sunny.cache.CacheWorker.java
com.sunny.cache.DiskLruCache.java
com.sunny.cache.FileLastModifSort.java
com.sunny.cache.GIFDecoder.java
com.sunny.cache.IDownloadHandler.java
com.sunny.cache.MemoryCache.java
com.sunny.cache.OnSetImageListener.java
com.sunny.cache.RecyclingBitmapDrawable.java
com.sunny.cache.ThumbnailLoader.java
com.sunny.net.DHttpClient.java
com.sunny.net.ProxyUtil.java
com.sunny.threadpool.AbstractCommand.java
com.sunny.threadpool.CommandFactory.java
com.sunny.threadpool.DThreadPool.java
com.sunny.threadpool.IDThreadPool.java
com.sunny.threadpool.IPriorityTask.java
com.sunny.threadpool.ITaskHandler.java
com.sunny.threadpool.PriorityTask.java
com.sunny.threadpool.PriorityThreadFactory.java
com.sunny.threadpool.TaskPriority.java
com.sunny.util.ImageUtil.java
com.sunny.util.MD5Util.java
com.sunny.util.Utils.java