Interface SerConsumer3<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 SerConsumer3<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 SerConsumer3<P1,P2,P3>
    Returns a composed SerConsumer3 that performs, in sequence, this operation followed by the after operation.
  • Method Details

    • accepting

      void accepting(P1 p1, P2 p2, P3 p3) throws Throwable
      接收参数方法
      Parameters:
      p1 - 参数一
      p2 - 参数二
      p3 - 参数三
      Throws:
      Exception - wrapped checked exception
      Throwable
    • accept

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

      default SerConsumer3<P1,P2,P3> andThen(SerConsumer3<P1,P2,P3> after)
      Returns a composed SerConsumer3 that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
      Parameters:
      after - the operation to perform after this operation
      Returns:
      a composed SerConsumer3 that performs in sequence this operation followed by the after operation
      Throws:
      NullPointerException - if after is null