Item 42: Prefer lambdas to anonymous classes(λ 表达式优于匿名类)
Historically,interfaces(or,rarely,abstractclasses)withasingleabstractmethodwereusedasfunctiontypes.Theirinstances,knownasfunctionobjects,representfunctionsoractions.SinceJDK1.1wasreleasedin1997,thepri