Package software.amazon.smithy.diff
Interface DiffEventDecorator
- All Known Implementing Classes:
PreviewFeatureDiffEventDecorator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Transforms diff validation events using the context of both models being compared, for example downgrading
the severity of a breaking change on a shape.
-
Method Summary
Modifier and TypeMethodDescriptiondecorate(Differences differences, ValidationEvent event) Takes a diff event and potentially transforms it, returning the same event if this decorator does not apply.
-
Method Details
-
decorate
Takes a diff event and potentially transforms it, returning the same event if this decorator does not apply.- Parameters:
differences- The differences between the old and new models being evaluated.event- The event to decorate.- Returns:
- Returns the decorated event or the original one if no decoration took place.
-