java集合框架的历史
在网上搜索后,我没有找到关于 JCF 的做得很好的文章,什么 有框架的先验。
有谁知道关于该问题标题的一本书、网站或其本身是一篇很好的历史论文吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自 Josh Bloch 对(他的?)集合框架的介绍:
因此,在 Java 1.2 之前,我们已经有了用于通用数据结构(Vector、Hashtable)的实用程序类,但这些类不共享通用接口(
java.util.Collection
、java.util.List
, ...) 是集合框架的基础。From Josh Bloch's introduction to the (his?) collection 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 集合框架的基本功能的介绍可以在这里找到: http: //download.oracle.com/javase/tutorial/collections/index.html。然而,学习如何使用 JCF 的更复杂功能需要检查基本抽象类和接口的子类,并阅读它们中每一个的文档。
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.
正如 Andreas_D 正确指出的那样,我想补充一点,早期没有框架,并且使用的那些类缺乏可移植性/互操作性、速度处理的问题。
以下是遗留类:
字典、哈希表、堆栈、向量和属性。
这些类在java SDK版本的集合框架中进行了改进。
问候,
阿南德
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