/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
/** * A convenience method for {@code new JsonPatchImpl(build()).apply(target)}. * The target is not modified by the patch. * * @param <T> the target type, must be a subtype of {@link JsonStructure} * @param target the target to apply the patch operations * @return the transformed target after the patch * @throws JsonException if the supplied JSON Patch is malformed or if * it contains references to non-existing members */ public <T extends JsonStructure> T apply(T target) { return build().apply(target); }
private JsonObject modifyJson(final JsonObject json) { if (options.getJsonPatch() == null) return json; return options.getJsonPatch().apply(json); }
private JsonObject modifyJson(final JsonObject json) { if (options.getJsonPatch() == null) return json; return options.getJsonPatch().apply(json); }