因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
应用推荐