Interface Consumer1<P1>

Type Parameters:
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 Consumer1<P1>
参数Consumer
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(P1 p1)
    接收参数方法
  • Method Details

    • accept

      void accept(P1 p1)
      接收参数方法
      Parameters:
      p1 - 参数一