public interface MatchResult
| Modifier and Type | Method and Description |
|---|---|
static MatchResult |
fromBoolean(boolean match,
java.lang.String description) |
java.lang.String |
getDescription()
Gets a description as to why the match succeeded or failed; intended for logging purposes.
|
boolean |
isMatch() |
static MatchResult |
match(java.lang.String description) |
static MatchResult |
mismatch(java.lang.String description) |
boolean isMatch()
@Nonnull java.lang.String getDescription()
@Nonnull static MatchResult fromBoolean(boolean match, java.lang.String description)
@Nonnull static MatchResult match(java.lang.String description)
@Nonnull static MatchResult mismatch(java.lang.String description)