【修炼内功】[kotlin] 聊一聊泛型的可空性

2018-11-09
阅读 3 分钟
2.7k
Introduced in J2SE 5.0, this long-awaited enhancement to the type system allows a type or method to operate on objects of various types while providing compile-time type safety. It adds compile-time type safety to the Collections Framework and eliminates the drudgery of casting.