Module bus.core

Interface Consumer3X<P1,P2,P3>

Type Parameters:
P1 - 参数一类型
P2 - 参数二类型
P3 - 参数三类型
All Superinterfaces:
Serializable
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 Consumer3X<P1,P2,P3> extends Serializable
3参数Consumer
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(P1 p1, P2 p2, P3 p3)
    接收参数方法
    void
    accepting(P1 p1, P2 p2, P3 p3)
    接收参数方法
    default Consumer3X<P1,P2,P3>
    返回一个组合的Consumer3X,按顺序执行此操作,然后执行after操作。
  • Method Details

    • accepting

      void accepting(P1 p1, P2 p2, P3 p3) throws Throwable
      接收参数方法
      Parameters:
      p1 - 参数一
      p2 - 参数二
      p3 - 参数三
      Throws:
      Exception - 包装检查异常
      Throwable
    • accept

      default void accept(P1 p1, P2 p2, P3 p3)
      接收参数方法
      Parameters:
      p1 - 参数一
      p2 - 参数二
      p3 - 参数三
    • andThen

      default Consumer3X<P1,P2,P3> andThen(Consumer3X<P1,P2,P3> after)
      返回一个组合的Consumer3X,按顺序执行此操作,然后执行after操作。 如果执行任何操作都会抛出异常,则将其传递给组合操作的调用者。如果执行此操作会抛出异常,则不会执行操作。
      Parameters:
      after - 后续要要执行的操作
      Returns:
      一个组合 Consumer3X,按顺序执行此操作,然后执行after操作
      Throws:
      NullPointerException - if after is null