|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.klomp.snark.web.Sorters
class Sorters
Comparators for various columns
Nested Class Summary | |
---|---|
static class |
Sorters.FileAndIndex
Class to precompute and efficiently sort data on a torrent file entry. |
Constructor Summary | |
---|---|
Sorters()
|
Method Summary | |
---|---|
static Comparator<Snark> |
getComparator(int type,
I2PSnarkServlet servlet)
Negative is reverse 0, 1: Name 2: Status 3: Peers 4: ETA 5: Size 6: Downloaded 7: Uploaded 8: Down rate 9: Up rate 10: Remaining (needed) 11: Upload ratio 12: File type |
static Comparator<Sorters.FileAndIndex> |
getFileComparator(int type,
I2PSnarkServlet servlet)
Negative is reverse 0, 1: Name 5: Size 10: Remaining (needed) 12: File type 13: Priority |
static void |
setPattern(String lang)
Sets static field, oh well |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Sorters()
Method Detail |
---|
public static Comparator<Snark> getComparator(int type, I2PSnarkServlet servlet)
servlet
- for file type callback onlypublic static Comparator<Sorters.FileAndIndex> getFileComparator(int type, I2PSnarkServlet servlet)
servlet
- for file type callback onlypublic static void setPattern(String lang)
lang
- null for none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |