接口 Supplier1<T,P1>

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface Supplier1<T,P1>
从以下版本开始:
1.1.4
作者:
应卓
  • 方法概要

    修饰符和类型
    方法
    说明
    get(P1 p1)
    生成实例的方法
    default Supplier<T>
    将带有参数的Supplier转换为无参Supplier
  • 方法详细资料

    • get

      T get(P1 p1)
      生成实例的方法
      参数:
      p1 - 参数一
      返回:
      目标对象
    • toSupplier

      default Supplier<T> toSupplier(P1 p1)
      将带有参数的Supplier转换为无参Supplier
      参数:
      p1 - 参数1
      返回:
      Supplier