public class ArrayEquals extends Equals
Constructor and Description |
---|
ArrayEquals(java.lang.Object wanted) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
appendArray(java.lang.Object[] array) |
static java.lang.Object[] |
createObjectArray(java.lang.Object array) |
boolean |
matches(java.lang.Object actual)
Informs if this matcher accepts the given argument.
|
java.lang.String |
toString() |
equals, getWanted, hashCode, toStringWithType, typeMatches
public boolean matches(java.lang.Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches
in interface ArgumentMatcher<java.lang.Object>
matches
in class Equals
actual
- the argumentprivate java.lang.String appendArray(java.lang.Object[] array)
public static java.lang.Object[] createObjectArray(java.lang.Object array)