/** * Builds {@link ObjectGenerator} based on current builder configuration. Resulting {@link ObjectGenerator} will try * to convert configured output to specified <code>objectType</code>. * * @param objectType Type of object to which conversion will be attempted. * @param <T> Type of object {@link ObjectGenerator} will generate. * @return Instance of {@link ObjectGenerator}. */ public <T> ObjectGenerator<T> build(Class<T> objectType) { return build(objectType, new ObjectMapper()); }
/** * Builds {@link ObjectGenerator} based on current builder configuration. Resulting {@link ObjectGenerator} will try * to convert configured output to specified <code>objectType</code>. * * @param objectType Type of object to which conversion will be attempted. * @param <T> Type of object {@link ObjectGenerator} will generate. * @return Instance of {@link ObjectGenerator}. */ public <T> ObjectGenerator<T> build(Class<T> objectType) { return build(objectType, new ObjectMapper()); }