Package com.sap.cds.impl.diff
Class DiffProcessor
java.lang.Object
com.sap.cds.impl.diff.DiffProcessor
- All Implemented Interfaces:
CdsDiffProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.impl.diff.CdsDiffProcessor
CdsDiffProcessor.DiffVisitor
-
Method Summary
Modifier and TypeMethodDescriptionadd
(CdsDataProcessor.Filter filter, CdsDiffProcessor.DiffVisitor diffVisitor) Adds aCdsDiffProcessor.DiffVisitor
, which is notified about the differences in elements that match a given filter.static DiffProcessor
create()
void
process
(Iterable<? extends Map<String, Object>> newImages, Iterable<? extends Map<String, Object>> oldImages, CdsStructuredType type) Runs the CdsDiffProcessor on the new and old images of the data represented as a collection of entries or an instances of theResult
void
Runs the CdsDiffProcessor on the new and old image of the data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sap.cds.impl.diff.CdsDiffProcessor
add
-
Method Details
-
create
-
forDeepTraversal
-
add
public CdsDiffProcessor add(CdsDataProcessor.Filter filter, CdsDiffProcessor.DiffVisitor diffVisitor) Description copied from interface:CdsDiffProcessor
Adds aCdsDiffProcessor.DiffVisitor
, which is notified about the differences in elements that match a given filter.- Specified by:
add
in interfaceCdsDiffProcessor
- Parameters:
filter
- the filter predicate (seeCdsDataProcessor.Filter
)diffVisitor
- the differ that will called notified about changes- Returns:
- this instance of the
CdsDiffProcessor
-
process
public void process(Map<String, Object> newImage, Map<String, Object> oldImage, CdsStructuredType type) Description copied from interface:CdsDiffProcessor
Runs the CdsDiffProcessor on the new and old image of the data.- Specified by:
process
in interfaceCdsDiffProcessor
- Parameters:
newImage
- new image of the dataoldImage
- old image of the datatype
- the type of the data
-
process
public void process(Iterable<? extends Map<String, Object>> newImages, Iterable<? extends Map<String, Object>> oldImages, CdsStructuredType type) Description copied from interface:CdsDiffProcessor
Runs the CdsDiffProcessor on the new and old images of the data represented as a collection of entries or an instances of theResult
- Specified by:
process
in interfaceCdsDiffProcessor
- Parameters:
newImages
- sequence of the new images of the dataoldImages
- sequence of the old images of the datatype
- the type of the data
-