Class SortingUtil
- java.lang.Object
-
- jetbrains.buildServer.controllers.agent.statistics.table.SortingUtil
-
public class SortingUtil extends Object
- Author:
- Eugene Petrenko Created: 14.11.2008 18:04:55
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SortingUtil.Permutation
-
Constructor Summary
Constructors Constructor Description SortingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Q> SortingUtil.Permutation
sort(List<Q> list, Comparator<Q> cmp)
Sorts collection fromlist
according to comparercmp
and returns permutation object which can be applied to re-sort any other list of the same size.
-
-
-
Method Detail
-
sort
@NotNull public static <Q> SortingUtil.Permutation sort(@NotNull List<Q> list, @NotNull Comparator<Q> cmp)
Sorts collection fromlist
according to comparercmp
and returns permutation object which can be applied to re-sort any other list of the same size.- Type Parameters:
Q
-- Parameters:
list
-cmp
-- Returns:
- sorts list from argument, and returns sorting permutation for that
-
-