Package org.apache.johnzon.core
Class JsonMergePatchImpl
- java.lang.Object
-
- org.apache.johnzon.core.JsonMergePatchImpl
-
- All Implemented Interfaces:
jakarta.json.JsonMergePatch
,Serializable
public class JsonMergePatchImpl extends Object implements jakarta.json.JsonMergePatch, Serializable
- Author:
- Mark Struberg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private BufferStrategy.BufferProvider<char[]>
bufferProvider
private jakarta.json.JsonValue
patch
private JsonProviderImpl
provider
-
Constructor Summary
Constructors Constructor Description JsonMergePatchImpl(jakarta.json.JsonValue patch, BufferStrategy.BufferProvider<char[]> bufferProvider, JsonProviderImpl provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.json.JsonValue
apply(jakarta.json.JsonValue valueToApplyPatchOn)
private jakarta.json.JsonValue
applyJsonObjectPatch(jakarta.json.JsonObject jsonObject, jakarta.json.JsonObject patch)
private jakarta.json.JsonValue
applyPatch(jakarta.json.JsonValue valueToApplyPatchOn, jakarta.json.JsonValue patch)
jakarta.json.JsonValue
toJsonValue()
-
-
-
Field Detail
-
patch
private jakarta.json.JsonValue patch
-
bufferProvider
private BufferStrategy.BufferProvider<char[]> bufferProvider
-
provider
private JsonProviderImpl provider
-
-
Constructor Detail
-
JsonMergePatchImpl
public JsonMergePatchImpl(jakarta.json.JsonValue patch, BufferStrategy.BufferProvider<char[]> bufferProvider, JsonProviderImpl provider)
-
-
Method Detail
-
apply
public jakarta.json.JsonValue apply(jakarta.json.JsonValue valueToApplyPatchOn)
- Specified by:
apply
in interfacejakarta.json.JsonMergePatch
-
applyPatch
private jakarta.json.JsonValue applyPatch(jakarta.json.JsonValue valueToApplyPatchOn, jakarta.json.JsonValue patch)
-
applyJsonObjectPatch
private jakarta.json.JsonValue applyJsonObjectPatch(jakarta.json.JsonObject jsonObject, jakarta.json.JsonObject patch)
-
toJsonValue
public jakarta.json.JsonValue toJsonValue()
- Specified by:
toJsonValue
in interfacejakarta.json.JsonMergePatch
-
-