SuperKoTable implements Serializable { public void copyDataFrom(SuperKoTable that) { System.arraycopy(that.data, 0, data, 0, data.length); } SuperKoTable(CoordinateSystem coords); void add(long key); void clear(); boolean contains(long key); void copyDataFrom(SuperKoTable that); static final long EMPTY; static final int IGNORE_SIGN_BIT; }
@Test public void testCopyDataFrom() { SuperKoTable table2 = new SuperKoTable(CoordinateSystem.forWidth(19)); table.add(-3); table2.copyDataFrom(table); assertTrue(table2.contains(-3)); }