How to write interface variable length generics

how to write interface variable length generics

Xiaobai, what should I do to achieve the effect of the following code

related codes

@FunctionalInterface
public interface Convert1N<T..., R> {

    /**
     * 
     * Applies this function to the given arguments.
     *
     * @param t the function argument
     * @return the function result
     */
    R apply(T... t);
}

-sharp-sharp-sharp , 
![ , ][1]

Apr.10,2022

@FunctionalInterface
public interface Convert1N<T, R> {

    /**
     * 
     * Applies this function to the given arguments.
     *
     * @param t the function argument
     * @return the function result
     */
    R apply(T... t);
}
The

interface layer does not need to be longer. It's just a definition of paradigm. Longer is only used in the actual interface.

Menu