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

Method removeMax

output/java_guava/1.4.19/TreeMultiset.java:828–837  ·  view source on GitHub ↗
(AvlNode<E> node)

Source from the content-addressed store, hash-verified

826 // Removes the maximum node from this subtree to be reused elsewhere
827
828 private AvlNode<E> removeMax(AvlNode<E> node) {
829 if (right == null) {
830 return left;
831 } else {
832 right = right.removeMax(node);
833 distinctElements--;
834 totalCount -= node.elemCount;
835 return rebalance();
836 }
837 }
838
839 private void recomputeMultiset() {
840 this.distinctElements =

Callers 1

deleteMeMethod · 0.45

Calls 1

rebalanceMethod · 0.95

Tested by

no test coverage detected