@Test public void testSizeRounding() { ByteArrayFilter filter = new ByteArrayFilter(3); assertEquals("3 should round to 4", 4, filter.getSize()); filter = new ByteArrayFilter(4); assertEquals("4 should round to 4", 4, filter.getSize()); filter = new ByteArrayFilter(129); assertEquals("129 should round to 256", 256, filter.getSize()); }
public int getSize() { return array.length(); }
ByteArrayFilter { public int getSize() { return array.length(); } }
ByteArrayFilter { public int getSize() { return array.length(); } ByteArrayFilter(int size); }
ByteArrayFilter { public int getSize() { return array.length(); } ByteArrayFilter(int size); boolean containsAndAdd(byte[] id); int getSize(); }
ByteArrayFilter { public int getSize() { return array.length(); } ByteArrayFilter(int size); boolean containsAndAdd(byte[] id); int getSize();  }