public abstract class BaseMatcher<T> extends java.lang.Object implements Matcher<T>
Matcher
Constructor and Description |
---|
BaseMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
_dont_implement_Matcher___instead_extend_BaseMatcher_()
Deprecated.
|
void |
describeMismatch(java.lang.Object item,
Description description)
Generate a description of why the matcher has not accepted the item.
|
protected static boolean |
isNotNull(java.lang.Object actual,
Description mismatch)
Useful null-check method.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describeTo
@Deprecated public final void _dont_implement_Matcher___instead_extend_BaseMatcher_()
Matcher
_dont_implement_Matcher___instead_extend_BaseMatcher_
in interface Matcher<T>
Matcher._dont_implement_Matcher___instead_extend_BaseMatcher_()
public void describeMismatch(java.lang.Object item, Description description)
Matcher
matches(item)
is false, but
will not check this.describeMismatch
in interface Matcher<T>
item
- The item that the Matcher has rejected.description
- The description to be built or appended to.public java.lang.String toString()
toString
in class java.lang.Object
protected static boolean isNotNull(java.lang.Object actual, Description mismatch)
actual
- the object to checkmismatch
- where to write the mismatch description, if any