
no.whirlwin.jsonpatch.JsonPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-patch Show documentation
Show all versions of json-patch Show documentation
Java JSON patch implementation
The newest version!
package no.whirlwin.jsonpatch;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* The patch approach is described in the following RFC: https://tools.ietf.org/html/rfc5789
*/
public final class JsonPatch {
@JsonDeserialize(using = OpValidator.class)
private PatchOperation op;
private String path;
private T value;
public PatchOperation getOp() {
return op;
}
public void setOp(final PatchOperation op) {
this.op = op;
}
public String getPath() {
return path;
}
public void setPath(final String path) {
this.path = path;
}
public T getValue() {
return value;
}
public void setValue(final T value) {
this.value = value;
}
@Override
public String toString() {
return "JsonPatch{" +
"op=" + op +
", path='" + path + '\'' +
", value=" + value +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy