https://blog.csdn.net/m0_64102491/article/details/127272988
(o1,o2) -> Integer.compare(o1,o2)
左边
->
右边
->
被称为lambda操作符或箭头操作符左边
:lambda形参列表(其实就是接口中的抽象方法的形参列表)右边
:lambda体 (其实就是重写的抽象方法的方法体)
https://blog.csdn.net/m0_64102491/article/details/127272988
(o1,o2) -> Integer.compare(o1,o2)
左边
->
右边
->
被称为lambda操作符或箭头操作符左边
:lambda形参列表(其实就是接口中的抽象方法的形参列表)右边
:lambda体 (其实就是重写的抽象方法的方法体)