According to jdk1.8 source derived finishing, java collection system (inheritance, realization relationship) diagrams, ultra-clear, a look to understand, easy to remember

I. Introduction

  1. This diagram is based on my income JDK1.8 source finishing, finishing only a common, common collection, not all.

  2. Finishing logic:

    There are two sub-interfaces under the Collection interface: List and Set interfaces.

    Map is independent of an interface.

    About the characteristics of various collections, but the figure given in the summary, not from the underlying data structures to analyze, followed by the time I will write a common set of Bowen underlying data structure analysis.

  3. explanation of the relationship diagram:

    ① left to right each interface / implementation relationship between classes: the left node is the node to the right of the realization / inheritance;

    ② dashed: dotted line starting from class to achieve a dashed arrow pointing interface .

    Three interfaces (List, Set, Map) ③ set of icons ①②③ were marked with different colors;

    Three interfaces (List, Set, Map) ④ set of common implementation class, marked with stars are the same color as the interface icon;

    ⑤ tick icons and emoticons, I think it is noteworthy that the interface / implementation class;

Two, Collection and Map of inheritance:

 

Guess you like

Origin www.cnblogs.com/laipimei/p/11159265.html