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.
3参数Consumer
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault void接收参数方法void接收参数方法default SerConsumer3<P1, P2, P3> andThen(SerConsumer3<P1, P2, P3> after) Returns a composedSerConsumer3that performs, in sequence, this operation followed by theafteroperation.
-
Method Details
-
accepting
接收参数方法 -
accept
接收参数方法- Parameters:
p1- 参数一p2- 参数二p3- 参数三
-
andThen
Returns a composedSerConsumer3that performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
SerConsumer3that performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-