How does Collections.reverseOrder know what type parameter to use while returning Comparator

后端 未结 5 1033
野趣味
野趣味 2021-01-05 20:02

As per Java API spec, the signature of Collections.reverseOrder is

public static Comparator reverseOrder()

And the example gi

5条回答
提交回复
热议问题