Uses of Class
com.google.common.collect.TopKSelector
Packages that use TopKSelector
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
-
Uses of TopKSelector in com.google.common.collect
Methods in com.google.common.collect that return TopKSelectorModifier and TypeMethodDescription(package private) TopKSelector<T>TopKSelector.combine(TopKSelector<T> other) static <T extends Comparable<? super T>>
TopKSelector<T>TopKSelector.greatest(int k) Returns aTopKSelectorthat collects the greatestkelements added to it, relative to the natural ordering of the elements, and returns them viatopK()in descending order.static <T> TopKSelector<T>TopKSelector.greatest(int k, Comparator<? super T> comparator) Returns aTopKSelectorthat collects the greatestkelements added to it, relative to the specified comparator, and returns them viatopK()in descending order.static <T extends Comparable<? super T>>
TopKSelector<T>TopKSelector.least(int k) Returns aTopKSelectorthat collects the lowestkelements added to it, relative to the natural ordering of the elements, and returns them viatopK()in ascending order.static <T> TopKSelector<T>TopKSelector.least(int k, Comparator<? super T> comparator) Returns aTopKSelectorthat collects the lowestkelements added to it, relative to the specified comparator, and returns them viatopK()in ascending order.Methods in com.google.common.collect with parameters of type TopKSelectorModifier and TypeMethodDescription(package private) TopKSelector<T>TopKSelector.combine(TopKSelector<T> other)