# 课程：泛型

> 原文： [https://docs.oracle.com/javase/tutorial/extra/generics/index.html](https://docs.oracle.com/javase/tutorial/extra/generics/index.html)

## _ 作者：Gilad Bracha_

这个期待已久的类型系统增强版在 J2SE 5.0 中引入，允许类型或方法对各种类型的对象进行操作，同时提供编译时类型安全性。它为集合框架增加了编译时类型安全性，并消除了铸造的苦差事。

[Introduction](intro.html)

[Defining Simple Generics](simple.html)

[Generics and Subtyping](subtype.html)

[Wildcards](wildcards.html)

[Generic Methods](methods.html)

[Interoperating with Legacy Code](legacy.html)

[The Fine Print](fineprint.html)

[Class Literals as Runtime-Type Tokens](literals.html)

[More Fun with Wildcards](morefun.html)

[Converting Legacy Code to Use Generics](convert.html)

[Acknowledgements](acknowledgements.html)