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.

@FunctionalInterface public interface DiffEventDecorator
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 Type
    Method
    Description
    decorate(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

      ValidationEvent decorate(Differences differences, ValidationEvent event)
      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.