@Test public void testSizeRounding() { OoaBFilter filter = new OoaBFilter(3, 0); assertEquals("3 should round to 4", 4, filter.getSize()); filter = new OoaBFilter(4, 0); assertEquals("4 should round to 4", 4, filter.getSize()); filter = new OoaBFilter(129, 0); assertEquals("129 should round to 256", 256, filter.getSize()); }
public int getSize() { return array.length; }
OoaBFilter { public int getSize() { return array.length; } }
OoaBFilter { public int getSize() { return array.length; } OoaBFilter(int size, int bufSize); }
OoaBFilter { public int getSize() { return array.length; } OoaBFilter(int size, int bufSize); boolean containsAndAdd(Element element); int getSize(); }
OoaBFilter { public int getSize() { return array.length; } OoaBFilter(int size, int bufSize); boolean containsAndAdd(Element element); int getSize();  }