Class TopNSequence<T>

  • All Implemented Interfaces:
    Sequence<T>

    public class TopNSequence<T>
    extends BaseSequence<T,​Iterator<T>>
    Simultaneously sorts and limits its input. The sort is stable, meaning that equal elements (as determined by the comparator) will not be reordered.
    • Constructor Detail