Class MatchResult
java.lang.Object
com.github.tomakehurst.wiremock.matching.MatchResult
- All Implemented Interfaces:
Comparable<MatchResult>
- Direct Known Subclasses:
AbstractDateTimeMatchResult,AbstractNumberMatchResult,EagerMatchResult,MemoizingMatchResult,WeightedAggregateMatchResult
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMatchResult(List<SubEvent> subEvents) MatchResult(List<SubEvent> subEvents, MatchResult.DiffDescription diffDescription) MatchResult(List<SubEvent> subEvents, List<MatchResult.DiffDescription> diffDescriptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchResultaggregate(MatchResult... matches) static MatchResultaggregate(List<MatchResult> matchResults) static MatchResultaggregateWeighted(WeightedMatchResult... matchResults) static MatchResultaggregateWeighted(List<WeightedMatchResult> matchResults) protected voidappendSubEvent(SubEvent subEvent) intcompareTo(MatchResult other) static MatchResultexactMatch(SubEvent... subEvents) static MatchResultexactMatch(List<SubEvent> subEvents) abstract doubleabstract booleanstatic MatchResultstatic MatchResultstatic MatchResultstatic MatchResultstatic MatchResultpartialMatch(double distance) static MatchResultpartialMatch(double distance, SubEvent... subEvents) static MatchResultpartialMatch(double distance, List<SubEvent> subEvents)
-
Field Details
-
ARE_EXACT_MATCH
-
-
Constructor Details
-
MatchResult
public MatchResult() -
MatchResult
-
MatchResult
-
MatchResult
-
-
Method Details
-
appendSubEvent
-
getSubEvents
-
getDiffDescriptions
-
partialMatch
-
partialMatch
-
partialMatch
-
exactMatch
-
exactMatch
-
noMatch
-
noMatch
-
of
-
of
-
aggregate
-
aggregate
-
aggregateWeighted
-
aggregateWeighted
-
isExactMatch
public abstract boolean isExactMatch() -
getDistance
public abstract double getDistance() -
compareTo
- Specified by:
compareToin interfaceComparable<MatchResult>
-