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

Method attachToRight

Ports/CLDC11/src/java/util/TreeMap.java:4697–4708  ·  view source on GitHub ↗
(Node<K, V> node, Node<K, V> newNode)

Source from the content-addressed store, hash-verified

4695 }
4696
4697 private void attachToRight(Node<K, V> node, Node<K, V> newNode) {
4698 newNode.parent = node;
4699 // - node.right==null - attach here
4700 node.right = newNode;
4701 newNode.prev = node;
4702 Node<K, V> successor = node.next;
4703 newNode.next = successor;
4704 if (successor != null) {
4705 successor.prev = newNode;
4706 }
4707 node.next = newNode;
4708 }
4709
4710 private Node<K, V> createNode(K keyObj, V value) {
4711 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