接口 Customizer<T>

  • 类型参数:
    T - the type of the input to the operation
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface Customizer<T>
    Callback interface that accepts a single input argument and returns no result.
    • 方法详细资料

      • customize

        void customize​(T t)
        Performs the customizations on the input argument.
        参数:
        t - the input argument
      • withDefaults

        static <T> Customizer<T> withDefaults()
        Returns a Customizer that does not alter the input argument.
        返回:
        a Customizer that does not alter the input argument.