MCPcopy Create free account
hub / github.com/ReadyTalk/avian / rightRotate

Method rightRotate

classpath/avian/PersistentSet.java:176–181  ·  view source on GitHub ↗
(Node<T> n)

Source from the content-addressed store, hash-verified

174 }
175
176 private static <T> Node<T> rightRotate(Node<T> n) {
177 Node<T> child = new Node(n.left);
178 n.left = child.right;
179 child.right = n;
180 return child;
181 }
182
183 public PersistentSet<T> remove(T value) {
184 Path<T> p = find(value);

Callers 2

addMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected