Java 集合(List, Set, Queue, & Map)的 UML类图

openkk 12年前

以下是作者绘制的Java Collection APIs ( List, Set, Queue, & Map)类图。点击类图可以查看大图。

这份列表兼容从JDK 1.0到JDK 7 (1.7)最新版本

接口采用" 灰色"表示,抽象类用" 黄色"表示,实现类用" 绿色"表示。接口有列出它的方法和属性。但抽象类和实现类没有画出它们的方法和属性,可以从其实现的接口猜出。

A " Red" circle next to a Class, denotes an obsolete class, which you should not be using, unless working with legacy code. A " Green" circle next to a class/interface means that class/interface is from the " <SPAN style="FONT-FAMILY: " new?,courier,monospace;?="" courier="">java.util.concurrent</span>" package.


Below each diagram is a link for an interactive image map and also a printable PDF. The image map has links to the respective javadocs for each interface/class, and also a brief description of each interface/class in form of a tool-tip.

List

Java List APIs

 

Set

Java Set APIs

 

Queue

Java Queue APIs

 

Map

Java Map APIs

 

Collection

i.e. List + Set + Queue

Java Collection APIs