MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / attachToRight

Method attachToRight

vm/JavaAPI/src/java/util/TreeMap.java:4675–4686  ·  view source on GitHub ↗
(Node<K, V> node, Node<K, V> newNode)

Source from the content-addressed store, hash-verified

4673 }
4674
4675 private void attachToRight(Node<K, V> node, Node<K, V> newNode) {
4676 newNode.parent = node;
4677 // - node.right==null - attach here
4678 node.right = newNode;
4679 newNode.prev = node;
4680 Node<K, V> successor = node.next;
4681 newNode.next = successor;
4682 if (successor != null) {
4683 successor.prev = newNode;
4684 }
4685 node.next = newNode;
4686 }
4687
4688 private Node<K, V> createNode(K keyObj, V value) {
4689 Node<K, V> node = new Node<K, V>();

Callers 2

addToLastMethod · 0.95
putImplMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected