TypeSafeMatcher
.@Deprecated public abstract class TypeSafeMatcher<T> extends org.hamcrest.BaseMatcher<T>
Modifier | Constructor and Description |
---|---|
protected |
TypeSafeMatcher()
Deprecated.
|
protected |
TypeSafeMatcher(Class<T> expectedType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Object item)
Deprecated.
Method made final to prevent accidental override.
|
abstract boolean |
matchesSafely(T item)
Deprecated.
Subclasses should implement this.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
public abstract boolean matchesSafely(T item)
public final boolean matches(Object item)
BaseMatcher
.Copyright © 2002–2018 JUnit. All rights reserved.