Package com.gpudb.filesystem.common
Class Result.SortByDownloadPartNumber
- java.lang.Object
-
- com.gpudb.filesystem.common.Result.SortByDownloadPartNumber
-
- All Implemented Interfaces:
Comparator<Result>
- Enclosing class:
- Result
public static class Result.SortByDownloadPartNumber extends Object implements Comparator<Result>
This is an implementation of theComparatorinterface used to sort the list ofResultobjects returned by background threads downloading parts of a file. This is used by the methodFileDownloader.downloadMultiPartFiles()
-
-
Constructor Summary
Constructors Constructor Description SortByDownloadPartNumber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Result result1, Result result2)-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Result result1, Result result2)
- Specified by:
comparein interfaceComparator<Result>
-
-