public static <T extends Comparable<T>> T kthLargest(final Collection<? extends T> c, final int from, final int to, final int k) {
        if (N.isNullOrEmpty(c) || to - from < 1) {
            throw new IllegalArgumentException("The length of collection can not be null or empty");
        }

        return Array.kthLargest(c, from, to, k);
    }
public static < T extends Comparable < T > > T kthLargest ( final Collection < ? extends T > c , final int from , final int to , final int k ) { if ( N . isNullOrEmpty ( c ) || to - from < 1 ) { throw new IllegalArgumentException ( "The length of collection can not be null or empty" ) ; } return Array . kthLargest ( c , from , to , k ) ; }
@param c
@param from
@param to
@param k
@return the kth largest element from <code>a[from]</code> to <code>a[to]</code>
@throws IllegalArgumentException if <code>to - from</code> is less than <code>k</code>.