|
|
@ -66,6 +66,8 @@ public class TorrentsComparator implements Comparator<Torrent> { |
|
|
|
return tor1.getDateAdded().compareTo(tor2.getDateAdded()); |
|
|
|
return tor1.getDateAdded().compareTo(tor2.getDateAdded()); |
|
|
|
case DateDone: |
|
|
|
case DateDone: |
|
|
|
return tor1.getDateDone().compareTo(tor2.getDateDone()); |
|
|
|
return tor1.getDateDone().compareTo(tor2.getDateDone()); |
|
|
|
|
|
|
|
case DownloadSpeed: |
|
|
|
|
|
|
|
return new Integer(tor1.getRateDownload()).compareTo(new Integer(tor2.getRateDownload())); |
|
|
|
case UploadSpeed: |
|
|
|
case UploadSpeed: |
|
|
|
return new Integer(tor1.getRateUpload()).compareTo(new Integer(tor2.getRateUpload())); |
|
|
|
return new Integer(tor1.getRateUpload()).compareTo(new Integer(tor2.getRateUpload())); |
|
|
|
case Ratio: |
|
|
|
case Ratio: |
|
|
@ -85,6 +87,8 @@ public class TorrentsComparator implements Comparator<Torrent> { |
|
|
|
return 0 - tor1.getDateAdded().compareTo(tor2.getDateAdded()); |
|
|
|
return 0 - tor1.getDateAdded().compareTo(tor2.getDateAdded()); |
|
|
|
case DateDone: |
|
|
|
case DateDone: |
|
|
|
return 0 - tor1.getDateDone().compareTo(tor2.getDateDone()); |
|
|
|
return 0 - tor1.getDateDone().compareTo(tor2.getDateDone()); |
|
|
|
|
|
|
|
case DownloadSpeed: |
|
|
|
|
|
|
|
return 0 - (new Integer(tor1.getRateDownload()).compareTo(new Integer(tor2.getRateDownload()))); |
|
|
|
case UploadSpeed: |
|
|
|
case UploadSpeed: |
|
|
|
return 0 - (new Integer(tor1.getRateUpload()).compareTo(new Integer(tor2.getRateUpload()))); |
|
|
|
return 0 - (new Integer(tor1.getRateUpload()).compareTo(new Integer(tor2.getRateUpload()))); |
|
|
|
case Ratio: |
|
|
|
case Ratio: |
|
|
|