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

Method leftRotate

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

Source from the content-addressed store, hash-verified

167 }
168
169 private static <T> Node<T> leftRotate(Node<T> n) {
170 Node<T> child = new Node(n.right);
171 n.right = child.left;
172 child.left = n;
173 return child;
174 }
175
176 private static <T> Node<T> rightRotate(Node<T> n) {
177 Node<T> child = new Node(n.left);

Callers 2

addMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected