public abstract class MatchResultBase<T,M extends org.hamcrest.Matcher<?>> extends PrecedencedSelfDescribingBase implements MatchResult<T>
MatchResult.Match<T>, MatchResult.Mismatch<T>P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
MatchResultBase(T value,
M matcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMatcher(org.hamcrest.Description d)
Describes the matcher.
|
M |
getMatcher()
Returns the matcher.
|
PrecedencedSelfDescribing |
getMatcherDescription()
Returns an object that will describe itself as the matcher.
|
int |
getMatcherPrecedence()
Returns the matcher's message precedence.
|
T |
getValue()
Returns the value that was matched.
|
describeTo, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMatch, getMismatch, matchedgetDescriptionPrecedencepublic T getValue()
MatchResultgetValue in interface MatchResult<T>public M getMatcher()
MatchResultgetMatcher in interface MatchResult<T>public void describeMatcher(org.hamcrest.Description d)
MatchResultdescribeMatcher in interface MatchResult<T>public int getMatcherPrecedence()
MatchResultgetMatcherPrecedence in interface MatchResult<T>PrecedencedSelfDescribingpublic PrecedencedSelfDescribing getMatcherDescription()
MatchResultgetMatcherDescription in interface MatchResult<T>Copyright © 2015. All rights reserved.