com.flipkart.zjsonpatch.NoopProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zjsonpatch Show documentation
Show all versions of zjsonpatch Show documentation
Java Library to find / apply JSON Patches according to RFC 6902
package com.flipkart.zjsonpatch;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.List;
/** A JSON patch processor that does nothing, intended for testing and validation. */
public class NoopProcessor implements JsonPatchProcessor {
static NoopProcessor INSTANCE;
static {
INSTANCE = new NoopProcessor();
}
@Override public void remove(List path) {}
@Override public void replace(List path, JsonNode value) {}
@Override public void add(List path, JsonNode value) {}
@Override public void move(List fromPath, List toPath) {}
}