put操作
- put()
1 | final V putVal(K key, V value, boolean onlyIfAbsent) { |
- initTable()
1 | private final Node<K,V>[] initTable() { |
- tabAt
1 | static final <K,V> Node<K,V> tabAt(Node<K,V>[] tab, int i) { |
- treeifyBin
1 | private final void treeifyBin(Node<K,V>[] tab, int index) { |
- tryPresize
1 | private final void tryPresize(int size) { |
- transfer
1 | private final void transfer(Node<K,V>[] tab, Node<K,V>[] nextTab) { |
- addCount()
1 | private final void addCount(long x, int check) { |