/** * Assigns a your custom POJO as the content and returns the handle. * @param content your custom POJO * @return the handle */ public JacksonDatabindHandle<T> with(T content) { set(content); return this; }
/** * Provides a handle on POJO content. * @param content the POJO which should be serialized */ public JacksonDatabindHandle(T content) { this((Class<T>) content.getClass()); set(content); }
handle.set(rootNode);
handle.set(rootNode);