|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.database.DownloadComparator
public class DownloadComparator
This class is for sorting of the download-queue
| Field Summary | |
|---|---|
static int |
BY_BOTH_CONTAINER_URL_FIRST
Sort first by container url, then by directory |
static int |
BY_BOTH_DIRECTORY_FIRST
Sort first by directory, then by container url |
static int |
BY_CONTAINER_URL_ONLY
Sort only by container url |
static int |
BY_TARGET_DIRECTORY_ONLY
Sort only by directory |
static int |
NO_SORT
Do not Sort |
| Constructor Summary | |
|---|---|
DownloadComparator(int compareBy)
Constructor |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
public static final int NO_SORT
public static final int BY_BOTH_CONTAINER_URL_FIRST
public static final int BY_BOTH_DIRECTORY_FIRST
public static final int BY_CONTAINER_URL_ONLY
public static final int BY_TARGET_DIRECTORY_ONLY
| Constructor Detail |
|---|
public DownloadComparator(int compareBy)
compareBy - How to sort| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||