Class AbstractDateTimeMatchResult
- java.lang.Object
-
- com.github.tomakehurst.wiremock.matching.MatchResult
-
- com.github.tomakehurst.wiremock.matching.AbstractDateTimeMatchResult
-
- All Implemented Interfaces:
java.lang.Comparable<MatchResult>
public abstract class AbstractDateTimeMatchResult extends MatchResult
-
-
Field Summary
Fields Modifier and Type Field Description protected java.time.LocalDateTimelocalActualprotected java.time.LocalDateTimelocalExpectedprotected java.time.ZonedDateTimezonedActualprotected java.time.ZonedDateTimezonedExpected-
Fields inherited from class com.github.tomakehurst.wiremock.matching.MatchResult
ARE_EXACT_MATCH
-
-
Constructor Summary
Constructors Constructor Description AbstractDateTimeMatchResult(java.time.ZonedDateTime zonedExpected, java.time.LocalDateTime localExpected, java.time.ZonedDateTime zonedActual, java.time.LocalDateTime localActual)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description doublegetDistance()booleanisExactMatch()protected abstract booleanmatchLocalLocal()protected abstract booleanmatchLocalZoned()protected abstract booleanmatchZonedLocal()protected abstract booleanmatchZonedZoned()-
Methods inherited from class com.github.tomakehurst.wiremock.matching.MatchResult
aggregate, aggregate, aggregateWeighted, aggregateWeighted, compareTo, exactMatch, noMatch, of, partialMatch
-
-
-
-
Method Detail
-
isExactMatch
public boolean isExactMatch()
- Specified by:
isExactMatchin classMatchResult
-
matchZonedZoned
protected abstract boolean matchZonedZoned()
-
matchLocalLocal
protected abstract boolean matchLocalLocal()
-
matchLocalZoned
protected abstract boolean matchLocalZoned()
-
matchZonedLocal
protected abstract boolean matchZonedLocal()
-
getDistance
public double getDistance()
- Specified by:
getDistancein classMatchResult
-
-