いいえ、バケットは、あなたが参照している配列の各要素です。以前のJavaバージョンでは、各バケットにマップエントリのリンクリストが含まれていました。新しいJavaバージョンでは、各バケットにはツリー構造のエントリまたはリンクされたエントリのリストが含まれています。 Javaの8で実装Notesから
:
/*
* Implementation notes.
*
* This map usually acts as a binned (bucketed) hash table, but
* when bins get too large, they are transformed into bins of
* TreeNodes, each structured similarly to those in
* java.util.TreeMap. Most methods try to use normal bins, but
* relay to TreeNode methods when applicable (simply by checking
* instanceof a node). Bins of TreeNodes may be traversed and
* used like any others, but additionally support faster lookup
* when overpopulated. However, since the vast majority of bins in
* normal use are not overpopulated, checking for existence of
* tree bins may be delayed in the course of table methods.
...
あなたがこれを読んでする必要があります(http://stackoverflow.com/questions/6493605/how-does-a-java-hashmap-handle-different-objects-with -the-hash-code/6493946#6493946) – emotionlessbananas
@JonnyHenly:バケツは何ですか?上記の質問では、ハッシュコードとハッシュマップの実装にもっと取り組んでいます。だから私は私の質問を重複しているとは考えていない。質問は似ているかもしれませんが、彼らが求めている答えは異なります。 – dgupta3091