- 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
-
Method Details
-
accepting
接收参数方法 -
accept
接收参数方法- Parameters:
p1- 参数一p2- 参数二p3- 参数三
-
andThen
返回一个组合的Consumer3X,按顺序执行此操作,然后执行after操作。 如果执行任何操作都会抛出异常,则将其传递给组合操作的调用者。如果执行此操作会抛出异常,则不会执行操作。- Parameters:
after- 后续要要执行的操作- Returns:
- 一个组合
Consumer3X,按顺序执行此操作,然后执行after操作 - Throws:
NullPointerException- ifafteris null
-