Interface Supplier1<T,P1>

Type Parameters:
T - 目标 类型
P1 - 参数一 类型
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Supplier1<T,P1>
参数Supplier
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    get(P1 p1)
    生成实例的方法
    default Supplier<T>
    将带有参数的Supplier转换为无参Supplier
  • Method Details

    • get

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

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