java.io.Serializable
, ContainsExtraTypeInformation
public class ArrayEquals extends Equals
Constructor | Description |
---|---|
ArrayEquals(java.lang.Object wanted) |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.Object[] |
createObjectArray(java.lang.Object array) |
|
void |
describeTo(org.hamcrest.Description description) |
By default this method decamelizes matchers name to promote meaningful names for matchers.
|
boolean |
matches(java.lang.Object actual) |
Returns whether this matcher accepts the given argument.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
describe, equals, getWanted, hashCode, typeMatches, withExtraTypeInfo
public boolean matches(java.lang.Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
public void describeTo(org.hamcrest.Description description)
ArgumentMatcher
For example StringWithStrongLanguage matcher will generate 'String with strong language' description in case of failure.
You might want to override this method to provide more specific description of the matcher (useful when verification failures are reported).
describeTo
in class Equals
description
- the description to which the matcher description is
appended.public static java.lang.Object[] createObjectArray(java.lang.Object array)