简体   繁体   English

哈希表。 姓名历史。 为什么不HashTable?

[英]Hashtable. Name history. Why not HashTable?

we know: 我们知道:

ArrayList;
LinkedList;
TreeMap

and other... and all names in CamelCase format, but why Hashtable , not HashTable ? 和其他...以及CamelCase格式的所有名称,但为什么Hashtable ,而不是HashTable

it is unprincipled question, just wondering :) 这是无原则的问题,只是想知道:)

Hashtable was created in Java v1. Hashtable是在Java v1中创建的。 The consistent naming conventions for collections were established later, in Java2, when the other classes were published as part of the brand new Java Collection Framework. 稍后在Java2中建立集合的一致命名约定,其他类作为全新Java Collection Framework的一部分发布。

Which btw made Hashtable obsolete, so it should not be used in new code. 哪个btw使Hashtable过时了,所以不应该在新代码中使用它。

It's a typo. 这是一个错字。 Same as Cloneable (should be Clonable). Cloneable相同(应该是Clonable)。 Or Referer (should be Referrer) Referer (应该是推荐人)

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

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