public static long min(long first, long... rest) {
        long min = first;
        for (long r : rest) {
            if (r < min)
                min = r;
        }
        return min;
    }
Get the minimum of some long values.
@param first Used to ensure at least one value
@param rest The remaining values to compare
@return The minimum of all passed values
clients/src/main/java/org/apache/kafka/common/utils/Utils.java