-
public final class MatchingContext
-
-
Field Summary
Fields Modifier and Type Field Description private final MatchingRuleCategorymatchersprivate final BooleanallowUnexpectedKeys
-
Constructor Summary
Constructors Constructor Description MatchingContext(MatchingRuleCategory matchers, Boolean allowUnexpectedKeys)
-
Method Summary
Modifier and Type Method Description final BooleanmatcherDefined(List<String> path, Comparator<String> pathComparator)final MatchingRuleGroupselectBestMatcher(List<String> path, Comparator<String> pathComparator)final BooleanwildcardMatcherDefined(List<String> path)final BooleanwildcardIndexMatcherDefined(List<String> path)final BooleantypeMatcherDefined(List<String> path)final <T extends Any> List<BodyItemMatchResult>matchKeys(List<String> path, Map<String, T> expectedEntries, Map<String, T> actualEntries, Function0<String> generateDiff)final MatchingRuleCategorycomponent1()final Booleancomponent2()final MatchingContextcopy(MatchingRuleCategory matchers, Boolean allowUnexpectedKeys)final MatchingRuleCategorygetMatchers()final BooleangetAllowUnexpectedKeys()-
-
Constructor Detail
-
MatchingContext
MatchingContext(MatchingRuleCategory matchers, Boolean allowUnexpectedKeys)
-
-
Method Detail
-
matcherDefined
final Boolean matcherDefined(List<String> path, Comparator<String> pathComparator)
-
selectBestMatcher
final MatchingRuleGroup selectBestMatcher(List<String> path, Comparator<String> pathComparator)
-
wildcardMatcherDefined
final Boolean wildcardMatcherDefined(List<String> path)
-
wildcardIndexMatcherDefined
final Boolean wildcardIndexMatcherDefined(List<String> path)
-
typeMatcherDefined
final Boolean typeMatcherDefined(List<String> path)
-
matchKeys
final <T extends Any> List<BodyItemMatchResult> matchKeys(List<String> path, Map<String, T> expectedEntries, Map<String, T> actualEntries, Function0<String> generateDiff)
-
component1
final MatchingRuleCategory component1()
-
component2
final Boolean component2()
-
copy
final MatchingContext copy(MatchingRuleCategory matchers, Boolean allowUnexpectedKeys)
-
getMatchers
final MatchingRuleCategory getMatchers()
-
getAllowUnexpectedKeys
final Boolean getAllowUnexpectedKeys()
-
-
-
-