简体   繁体   中英

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.

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:

Collection implementations in earlier (pre-1.2) versions of the Java platform included Vector, Hashtable, and 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.

An introduction to the basic features of the Java Collection Framework may be found here: 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.

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.

Following are the legacy classes: Dictionary, Hashtable, Stack, Vector, and Properties.

These classes are retrofitted in the collection framework of the java SDK versions.

Regards, Anand

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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