Class JsonMergePatchImpl
java.lang.Object
org.glassfish.json.JsonMergePatchImpl
- All Implemented Interfaces:
JsonMergePatch
This class is an implementation of a JSON Merge Patch as specified in
RFC 7396.
- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the JSON Merge Patch to the specifiedtarget.Returns theJsonMergePatchasJsonValue.
-
Constructor Details
-
JsonMergePatchImpl
-
-
Method Details
-
apply
Description copied from interface:JsonMergePatchApplies the JSON Merge Patch to the specifiedtarget. The target is not modified by the patch.- Specified by:
applyin interfaceJsonMergePatch- Parameters:
target- the target to apply the merge patch- Returns:
- the transformed target after the patch
-
toJsonValue
Description copied from interface:JsonMergePatchReturns theJsonMergePatchasJsonValue.- Specified by:
toJsonValuein interfaceJsonMergePatch- Returns:
- this
JsonMergePatchasJsonValue
-