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

Method rotateRight

output/java_guava/1.4.19/TreeMultiset.java:888–898  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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