declare namespace java { namespace util { namespace function$ { /** * Represents a function that produces an int-valued result. This is the * {@code int}-producing primitive specialization for {@link Function}. *

This is a functional interface * whose functional method is {@link #applyAsInt(Object)}. * @param the type of the input to the function * @see Function * @since 1.8 */ // @ts-ignore interface ToIntFunction { /** * Applies this function to the given argument. * @param value the function argument * @return the function result */ // @ts-ignore applyAsInt(value: T): number /*int*/ } } } }