@Test public void recursiveArrayInject() { Slime expect = new Slime(); { Cursor arr = expect.setArray(); arr.addLong(1); arr.addLong(2); arr.addLong(3); { Cursor arrCpy = arr.addArray(); arrCpy.addLong(1); arrCpy.addLong(2); arrCpy.addLong(3); } } Slime data = new Slime(); { Cursor arr = data.setArray(); arr.addLong(1); arr.addLong(2); arr.addLong(3); } inject(data.get(), new ArrayInserter(data.get())); assertEquals(expect.toString(), data.toString()); }
public void inject(Inspector inspector, Inserter inserter) { if (inspector.valid()) { injectValue(inserter, inspector, null); } }
Injector { public void inject(Inspector inspector, Inserter inserter) { if (inspector.valid()) { injectValue(inserter, inspector, null); } } }
Injector { public void inject(Inspector inspector, Inserter inserter) { if (inspector.valid()) { injectValue(inserter, inspector, null); } }  }
Injector { public void inject(Inspector inspector, Inserter inserter) { if (inspector.valid()) { injectValue(inserter, inspector, null); } }  void inject(Inspector inspector, Inserter inserter); }
Injector { public void inject(Inspector inspector, Inserter inserter) { if (inspector.valid()) { injectValue(inserter, inspector, null); } }  void inject(Inspector inspector, Inserter inserter);  }