lambda表达式
Can refer to other methods or constructor and only one code is automatically called Shihai can omit the parameter passing, code more compact, requires the use of a reference method syntax ::
notation. lambda表达式
It offers four ways reference methods and constructors:
- The method of the referenced object
类::实例方法
- Referenced class method
类::类方法
- Method references a specific object
特定对象::实例方法
- Reference class's constructor
类::new