摘要: Comparable vs Comparator in Java Java provides two interfaces to sort objects using data members of the class: Comparable Comparator Using Comparable 阅读全文
posted @ 2018-11-02 16:25 andychhr 阅读(258) 评论(0) 推荐(0) 编辑
摘要: What is the difference between List<? super T> and List<? extends T> ? extends The wildcard declaration of List<? extends Number> foo3 means that any 阅读全文
posted @ 2018-11-02 11:27 andychhr 阅读(545) 评论(2) 推荐(0) 编辑
摘要: extends The wildcard declaration of List<? extends Number> foo3 means that any of these are legal assignments: Reading - Given the above possible assi 阅读全文
posted @ 2018-11-02 11:25 andychhr 阅读(55) 评论(0) 推荐(0) 编辑