Class MatchResult
- java.lang.Object
-
- com.github.tomakehurst.wiremock.matching.MatchResult
-
- All Implemented Interfaces:
java.lang.Comparable<MatchResult>
- Direct Known Subclasses:
AbstractDateTimeMatchResult,EagerMatchResult,MemoizingMatchResult
public abstract class MatchResult extends java.lang.Object implements java.lang.Comparable<MatchResult>
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<WeightedMatchResult>ARE_EXACT_MATCH
-
Constructor Summary
Constructors Constructor Description MatchResult()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MatchResultaggregate(MatchResult... matches)static MatchResultaggregate(java.util.List<MatchResult> matchResults)static MatchResultaggregateWeighted(WeightedMatchResult... matchResults)static MatchResultaggregateWeighted(java.util.List<WeightedMatchResult> matchResults)intcompareTo(MatchResult other)static MatchResultexactMatch()abstract doublegetDistance()abstract booleanisExactMatch()static MatchResultnoMatch()static MatchResultof(boolean isMatch)static MatchResultpartialMatch(double distance)
-
-
-
Field Detail
-
ARE_EXACT_MATCH
public static final com.google.common.base.Predicate<WeightedMatchResult> ARE_EXACT_MATCH
-
-
Method Detail
-
partialMatch
public static MatchResult partialMatch(double distance)
-
exactMatch
public static MatchResult exactMatch()
-
noMatch
public static MatchResult noMatch()
-
of
public static MatchResult of(boolean isMatch)
-
aggregate
public static MatchResult aggregate(MatchResult... matches)
-
aggregate
public static MatchResult aggregate(java.util.List<MatchResult> matchResults)
-
aggregateWeighted
public static MatchResult aggregateWeighted(WeightedMatchResult... matchResults)
-
aggregateWeighted
public static MatchResult aggregateWeighted(java.util.List<WeightedMatchResult> matchResults)
-
isExactMatch
public abstract boolean isExactMatch()
-
getDistance
public abstract double getDistance()
-
compareTo
public int compareTo(MatchResult other)
- Specified by:
compareToin interfacejava.lang.Comparable<MatchResult>
-
-