HomeSort by relevance Sort by last modified time
    Searched refs:SimpleNode (Results 1 - 8 of 8) sorted by null

  /external/guava/guava-tests/test/com/google/common/collect/
BstInOrderPathTest.java 26 import com.google.common.collect.BstTesting.SimpleNode;
43 SimpleNode a = new SimpleNode('a', null, null);
44 SimpleNode c = new SimpleNode('c', null, null);
45 SimpleNode b = new SimpleNode('b', a, c);
46 SimpleNode e = new SimpleNode('e', null, null);
47 SimpleNode g = new SimpleNode('g', null, null)
    [all...]
BstNodeTest.java 23 import com.google.common.collect.BstTesting.SimpleNode;
37 private void testLacksChild(SimpleNode node, BstSide side) {
46 private void testChildIs(SimpleNode node, BstSide side, SimpleNode expectedChild) {
53 SimpleNode leaf = new SimpleNode('a', null, null);
59 SimpleNode leaf = new SimpleNode('a', null, null);
60 SimpleNode node = new SimpleNode('b', leaf, null)
    [all...]
AbstractBstBalancePolicyTest.java 21 import com.google.common.collect.BstTesting.SimpleNode;
34 protected abstract BstBalancePolicy<SimpleNode> getBalancePolicy();
37 SimpleNode a = new SimpleNode('a', null, null);
41 private SimpleNode balanceNew(char c, @Nullable SimpleNode left, @Nullable SimpleNode right) {
42 return getBalancePolicy().balance(nodeFactory, new SimpleNode(c, null, null), left, right);
49 SimpleNode c = balanceNew('c', null, null);
50 SimpleNode b = balanceNew('b', null, c)
    [all...]
BstOperationsTest.java 35 import com.google.common.collect.BstTesting.SimpleNode;
55 SimpleNode a = new SimpleNode('a', null, null);
56 SimpleNode b = new SimpleNode('b', a, null);
57 SimpleNode g = new SimpleNode('g', null, null);
58 SimpleNode f = new SimpleNode('f', null, g);
59 SimpleNode d = new SimpleNode('d', b, f)
    [all...]
BstRangeOpsTest.java 32 import com.google.common.collect.BstTesting.SimpleNode;
47 private static final SimpleNode ROOT;
50 SimpleNode a = new SimpleNode('a', null, null);
51 SimpleNode c = new SimpleNode('c', null, null);
52 SimpleNode b = new SimpleNode('b', a, c);
53 SimpleNode e = new SimpleNode('e', null, null)
    [all...]
BstTesting.java 38 static final class SimpleNode extends BstNode<Character, SimpleNode> {
39 SimpleNode(Character key, @Nullable SimpleNode left, @Nullable SimpleNode right) {
50 if (obj instanceof SimpleNode) {
51 SimpleNode node = (SimpleNode) obj;
65 static final BstNodeFactory<SimpleNode> nodeFactory = new BstNodeFactory<SimpleNode>() {
    [all...]
BstCountBasedBalancePoliciesTest.java 20 import com.google.common.collect.BstTesting.SimpleNode;
35 protected BstBalancePolicy<SimpleNode> getBalancePolicy() {
42 protected BstBalancePolicy<SimpleNode> getBalancePolicy() {
43 return BstCountBasedBalancePolicies.<Character, SimpleNode>singleRebalancePolicy(
50 protected BstBalancePolicy<SimpleNode> getBalancePolicy() {
51 return BstCountBasedBalancePolicies.<Character, SimpleNode>fullRebalancePolicy(
BstPathTest.java 18 import com.google.common.collect.BstTesting.SimpleNode;
29 static class SimplePath extends BstPath<SimpleNode, SimplePath> {
30 private SimplePath(SimpleNode tip, SimplePath tail) {
36 SimpleNode root = new SimpleNode('a', null, null);
47 SimpleNode node = new SimpleNode('a', null, null);
48 SimpleNode root = new SimpleNode('b', node, null);

Completed in 690 milliseconds