@Test public void testSizeBasic() { RangeSearchBST<Integer, Integer> test = new RangeSearchBST<>(); Assert.assertEquals(0, test.size(Integer.MIN_VALUE, Integer.MAX_VALUE)); test.put(1, 1); Assert.assertEquals(1, test.size(Integer.MIN_VALUE, Integer.MAX_VALUE)); Assert.assertEquals(1, test.size(Integer.MIN_VALUE, 1)); Assert.assertEquals(1, test.size(1, Integer.MAX_VALUE)); Assert.assertEquals(1, test.size(1, 1)); Assert.assertEquals(0, test.size(0, 0)); }
public int size(Key lo, Key hi) { return 0; }
RangeSearchBST extends RedBlackBSTWithNoExtraMemory<Key, Val> { public int size(Key lo, Key hi) { return 0; } }
RangeSearchBST extends RedBlackBSTWithNoExtraMemory<Key, Val> { public int size(Key lo, Key hi) { return 0; }  }
RangeSearchBST extends RedBlackBSTWithNoExtraMemory<Key, Val> { public int size(Key lo, Key hi) { return 0; }  int size(Key lo, Key hi); List<Key> search(Key lo, Key hi); }
RangeSearchBST extends RedBlackBSTWithNoExtraMemory<Key, Val> { public int size(Key lo, Key hi) { return 0; }  int size(Key lo, Key hi); List<Key> search(Key lo, Key hi);  }