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

Method aggregateForEntries

output/java_guava/1.4.18/TreeMultiset.java:172–183  ·  view source on GitHub ↗
(Aggregate aggr)

Source from the content-addressed store, hash-verified

170 }
171
172 private long aggregateForEntries(Aggregate aggr) {
173 AvlNode<E> root = rootReference.get();
174 long total = aggr.treeAggregate(root);
175 if (range.hasLowerBound()) {
176 total -= aggregateBelowRange(aggr, root);
177 }
178
179 if (range.hasUpperBound()) {
180 total -= aggregateAboveRange(aggr, root);
181 }
182 return total;
183 }
184
185 private long aggregateBelowRange(Aggregate aggr, @Nullable AvlNode<E> node) {
186 if (node == null) {

Callers 2

sizeMethod · 0.95
distinctElementsMethod · 0.95

Calls 6

aggregateBelowRangeMethod · 0.95
aggregateAboveRangeMethod · 0.95
getMethod · 0.65
treeAggregateMethod · 0.45
hasLowerBoundMethod · 0.45
hasUpperBoundMethod · 0.45

Tested by

no test coverage detected