Uses of Class
com.google.common.collect.TopKSelector
Packages that use TopKSelector
Package
Description
Collection interfaces and implementations, and other utilities for 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 aTopKSelector
that collects the greatestk
elements 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 aTopKSelector
that collects the greatestk
elements 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 aTopKSelector
that collects the lowestk
elements 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 aTopKSelector
that collects the lowestk
elements 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)