Package javax.json
Interface JsonMergePatch
-
public interface JsonMergePatch
A JSON MergePatch as defined in http://tools.ietf.org/html/rfc7396
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonValue
apply(JsonValue valueToApplyPatchOn)
Applies the current JsonMergePatch to the given valueJsonValue
toJsonValue()
-
-
-
Method Detail
-
apply
JsonValue apply(JsonValue valueToApplyPatchOn)
Applies the current JsonMergePatch to the given value- Parameters:
valueToApplyPatchOn
- the base value. Will not get changed itself.- Returns:
- the patched new JsonValue
-
toJsonValue
JsonValue toJsonValue()
- Returns:
- the Patch as JsonValue
-
-