T - public interface PatchConverter<T>
A strategy interface for producing Patch instances from a patch document representation (such as JSON Patch)
and rendering a Patch to a patch document representation. This decouples the Patch class from any specific
patch format or library that holds the representation.
For example, if the Patch is to be represented as JSON Patch, the representation type could be
JsonNode or some other JSON library's type that holds a JSON document.
PatchConverter| Modifier and Type | Method and Description |
|---|---|
T |
convert(Patch patch)
Convert a
Patch to a representation object. |
Patch |
convert(T patchRepresentation)
Convert a patch document representation to a
Patch. |
Copyright © 2019 DuraSpace. All rights reserved.