Interface ModelComparatorFilter


@OpenApiAll public interface ModelComparatorFilter
Base interface of filters used to skip unnecessary model elements during models comparison.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if given element should be compared by comparator or skipped.
    default boolean
    Checks if attributes of given element should be compared by comparator or skipped.
  • Method Details

    • needToCompare

      boolean needToCompare(Element e)
      Checks if given element should be compared by comparator or skipped.
      Parameters:
      e - element to check.
      Returns:
      true if elements should be compared, false if element should be skipped.
    • needToCompareAttribute

      default boolean needToCompareAttribute(String name, Element e1, Element e2)
      Checks if attributes of given element should be compared by comparator or skipped. References will be compared in any case.
      Parameters:
      name - attribute name
      e1 - first element to check
      e2 - first element to check
      Returns:
      true if attribute should be compared, false if element should be skipped.