首页 > 代码库 > Consumer接口简单分析

Consumer接口简单分析

 java8中首次出现Consumer接口,用于接收一个输入参数并处理,不返回任何值。

Represents an operation that accepts a single input argument and returns no result. 
Unlike most other functional interfaces, Consumer is expected to operate via side-effects.

 

Consumer接口简单分析