Interface ModelComparatorFilter
@OpenApiAll
public interface ModelComparatorFilter
Base interface of filters used to skip unnecessary model elements during models comparison.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if given element should be compared by comparator or skipped.default boolean
needToCompareAttribute
(String name, Element e1, Element e2) Checks if attributes of given element should be compared by comparator or skipped.
-
Method Details
-
needToCompare
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
Checks if attributes of given element should be compared by comparator or skipped. References will be compared in any case.- Parameters:
name
- attribute namee1
- first element to checke2
- first element to check- Returns:
- true if attribute should be compared, false if element should be skipped.
-