简体   繁体   English

Java Collections框架的历史

[英]java collections framework history

After searching on the web I didn't found a well-done article on the JCF and what there was prior of the framework. 在网上搜索之后,我没有找到关于JCF以及该框架的先行内容的出色文章。

Does anyone know a book, site or itself a good history paper on the question title? 是否有人知道一本书,网站或有关问题标题的良好历史论文?

From Josh Bloch's introduction to the (his?) collection framework: 从Josh Bloch的介绍到(his?)收集框架:

Collection implementations in earlier (pre-1.2) versions of the Java platform included Vector, Hashtable, and array. Java平台的早期版本(1.2之前)中的集合实现包括Vector,Hashtable和array。 However, those earlier versions did not contain a collections framework. 但是,那些早期版本不包含集合框架。

So before Java 1.2 we already had utility classes for common data structures (Vector, Hashtable) but those classes didn't share the common interfaces ( java.util.Collection , java.util.List , ...) that are the basis of the collection framework. 因此,在Java 1.2之前,我们已经有了用于通用数据结构(Vector,Hashtable)的实用程序类,但这些类没有共享作为基础的通用接口( java.util.Collectionjava.util.List ,...)。收集框架。

An introduction to the basic features of the Java Collection Framework may be found here: http://download.oracle.com/javase/tutorial/collections/index.html . 可以在以下位置找到Java Collection Framework基本功能的简介: http : //download.oracle.com/javase/tutorial/collections/index.html However, learning how to use the more complicated features of the JCF requires examining the children of the basic abstract classes and interfaces and reading the documentation for each one of them. 但是,学习如何使用JCF的更复杂的功能需要检查基本抽象类和接口的子级,并阅读每个抽象类和接口的文档。

As correctly pointed out by Andreas_D i would like to add on that earlier there was no framework and those classes used lacked the issues of portability / interoperability, speed processing. 正如Andreas_D正确指出的那样,我想补充一点,那就是之前没有框架,使用的这些类缺少可移植性/互操作性,速度处理的问题。

Following are the legacy classes: Dictionary, Hashtable, Stack, Vector, and Properties. 以下是旧类:字典,哈希表,堆栈,向量和属性。

These classes are retrofitted in the collection framework of the java SDK versions. 这些类在Java SDK版本的收集框架中进行了改进。

Regards, Anand 问候阿南德

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM