MCPcopy Create free account
hub / github.com/antlr/codebuff / rotateRight

Method rotateRight

output/java_guava/1.4.17/TreeMultiset.java:887–897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

885 }
886
887 private AvlNode<E> rotateRight() {
888 checkState(left != null);
889 AvlNode<E> newTop = left;
890 this.left = newTop.right;
891 newTop.right = this;
892 newTop.totalCount = this.totalCount;
893 newTop.distinctElements = this.distinctElements;
894 this.recompute();
895 newTop.recomputeHeight();
896 return newTop;
897 }
898
899 private static long totalCount(@Nullable AvlNode<?> node) {
900 return (node == null) ? 0 : node.totalCount;

Callers 6

rebalanceMethod · 0.95
hashLength0to16Method · 0.45
hashLength17to32Method · 0.45
hashLength33To64Method · 0.45
hashLength65PlusMethod · 0.45

Calls 3

recomputeMethod · 0.95
checkStateMethod · 0.45
recomputeHeightMethod · 0.45

Tested by

no test coverage detected