类型安全性 Type safety ; tyyppiturvallisuus ; typebeveiliging
类型安全的枚举 Type safe enums
认知型安全系统 Cognitive Safety Systems
类型安全的枚举类 typesafe enum class
新型亚洲安全观 New Asian security concept ; new Asian security concept ; New Asian Security Concept
类型安全的枚举模式 typesafe enum pattern
燃烧管型安全灯 combustion-tube lamp
手动释放型安全制动器 handwork release safe brake
简单来说,泛型为集合提供了编译时类型安全。
Simply put, generics provide compile-time type safety for collections.
然而,因为泛型,当使用集合而没有类型安全时,编译器将抛出警告。
However, because of generics, the compiler now throws warnings when collections are used without type safety.
从清单6中可以看出,我们再次利用泛型来使所有这些代码类型安全。
As you can see in Listing 6, generics are once again leveraged to make all of this code type safe.
应用推荐