添加这两个新实现的好处是散列集合现在可以维护贯穿其元素的两条路径。
The advantage of these additions is that a hashed collection now maintains two paths through its elements.
您可以通过使用String .intern或维护一个用户散列集合或散列映射来解决这个问题。
You can solve this problem by using String.intern or maintaining a user hash set or hash map.
除标准的散列关系之外,现在还有一个可遍历整个集合的链表。
In addition to the standard hashing relationship, there is now a linked list that traverses through the collection.
所有基于散列的集合假设,当对象的散列值用于作为集合中的关键字时它不会改变。
All hash-based collections assume that an object's hash value does not change while it is in use as a key in the collection.
如果我们从未在HashMap或其它基于散列的集合中使用Integer作为关键字的话,什么也不会发生。
Nothing, if we never used an Integer as a key in a HashMap or other hash-based collection.
如果当关键字在集合中时它的散列代码被更改,那么将产生一些不可预测和容易混淆的结果。
If a key's hash code were to change while it was in a collection, some unpredictable and confusing consequences could follow.
任何散列函数的输出是字节的集合,而不是文本的集合。
The output of any hash function is a collection of bytes, not a collection of text.
任何散列函数的输出是字节的集合,而不是文本的集合。
The output of any hash function is a collection of bytes, not a collection of text.
应用推荐