Home
last modified time | relevance | path

Searched refs:countAggregate (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DBstCountBasedBalancePolicies.java47 final BstAggregate<N> countAggregate) { in noRebalancePolicy() argument
48 checkNotNull(countAggregate); in noRebalancePolicy()
63 } else if (countAggregate.treeValue(left) > countAggregate.treeValue(right)) { in noRebalancePolicy()
80 final BstAggregate<N> countAggregate) {
81 checkNotNull(countAggregate);
86 long countL = countAggregate.treeValue(left);
87 long countR = countAggregate.treeValue(right);
102 if (countAggregate.treeValue(rl) >= SECOND_ROTATE_RATIO * countAggregate.treeValue(rr)) {
112 if (countAggregate.treeValue(lr) >= SECOND_ROTATE_RATIO * countAggregate.treeValue(ll)) {
140 if (countAggregate.treeValue(left) > countAggregate.treeValue(right)) {
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DBstCountBasedBalancePoliciesTest.java17 import static com.google.common.collect.BstTesting.countAggregate;
36 return BstCountBasedBalancePolicies.noRebalancePolicy(countAggregate); in getBalancePolicy()
44 countAggregate); in getBalancePolicy()
52 countAggregate); in getBalancePolicy()
DBstRangeOpsTest.java23 import static com.google.common.collect.BstTesting.countAggregate;
64 countAggregate, GeneralRange.downTo(Ordering.natural(), c, type), ROOT); in testCountInRangeLowerBound()
78 countAggregate, GeneralRange.upTo(Ordering.natural(), c, type), ROOT); in testCountInRangeUpperBound()
97 long count = BstRangeOps.totalInRange(countAggregate, GeneralRange.range( in testCountInRangeBothBounds()
119 countAggregate, GeneralRange.<Character>all(Ordering.natural()), ROOT)); in testCountInRangeAll()
125 assertEquals(0, BstRangeOps.totalInRange(countAggregate, range, empty)); in testCountInRangeEmpty()
DBstTesting.java102 static final BstAggregate<SimpleNode> countAggregate = new BstAggregate<SimpleNode>() { field in BstTesting
172 tester.setDefault(BstAggregate.class, countAggregate); in defaultNullPointerTester()