Package org.klomp.snark.web
Class Sorters
- java.lang.Object
- 
- org.klomp.snark.web.Sorters
 
- 
 class Sorters extends Object Comparators for various columns- Since:
- 0.9.16 from TorrentNameComparator, moved from I2PSnarkservlet
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSorters.FileAndIndexClass to precompute and efficiently sort data on a torrent file entry.
 - 
Constructor SummaryConstructors Constructor Description Sorters()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Comparator<Snark>getComparator(int type, String lang, 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 typestatic Comparator<Sorters.FileAndIndex>getFileComparator(int type, I2PSnarkServlet servlet)Negative is reverse 0, 1: Name 5: Size 10: Remaining (needed) 12: File type 13: Priority
 
- 
- 
- 
Method Detail- 
getComparatorpublic static Comparator<Snark> getComparator(int type, String lang, 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
 - Parameters:
- servlet- for file type callback only
 
 - 
getFileComparatorpublic 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
 - Parameters:
- servlet- for file type callback only
 
 
- 
 
-