Java List Select selectTopN(List originalList, int topN, Comparator comparator)

Here you can find the source of selectTopN(List originalList, int topN, Comparator comparator)