File tree 3 files changed +11
-2
lines changed
src/main/java/com/github/fge/jsonpatch
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 90
90
* constructor for this class ({@link JsonPatch#fromJson(JsonNode)} is used.</p>
91
91
*/
92
92
public final class JsonPatch
93
- implements JsonSerializable
93
+ implements JsonSerializable , Patch
94
94
{
95
95
private static final MessageBundle BUNDLE
96
96
= MessageBundles .getBundle (JsonPatchMessages .class );
Original file line number Diff line number Diff line change
1
+ package com .github .fge .jsonpatch ;
2
+
3
+ import com .fasterxml .jackson .databind .JsonNode ;
4
+
5
+ public interface Patch {
6
+
7
+ JsonNode apply (JsonNode node ) throws JsonPatchException ;
8
+ }
Original file line number Diff line number Diff line change 27
27
import com .github .fge .jsonpatch .JsonPatch ;
28
28
import com .github .fge .jsonpatch .JsonPatchException ;
29
29
import com .github .fge .jsonpatch .JsonPatchMessages ;
30
+ import com .github .fge .jsonpatch .Patch ;
30
31
import com .github .fge .msgsimple .bundle .MessageBundle ;
31
32
import com .github .fge .msgsimple .load .MessageBundles ;
32
33
64
65
@ ParametersAreNonnullByDefault
65
66
@ JsonDeserialize (using = JsonMergePatchDeserializer .class )
66
67
public abstract class JsonMergePatch
67
- implements JsonSerializable
68
+ implements JsonSerializable , Patch
68
69
{
69
70
private static final ObjectMapper MAPPER = JacksonUtils .newMapper ();
70
71
protected static final MessageBundle BUNDLE
You can’t perform that action at this time.
0 commit comments