public class Equals extends ArgumentMatcher<Object> implements ContainsExtraTypeInformation, Serializable
Modifier and Type | Method and Description |
---|---|
String |
describe(Object object) |
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
equals(Object o) |
protected Object |
getWanted() |
int |
hashCode() |
boolean |
matches(Object actual)
Returns whether this matcher accepts the given argument.
|
boolean |
typeMatches(Object object) |
SelfDescribing |
withExtraTypeInfo() |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public Equals(Object wanted)
public boolean matches(Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
matches
in interface Matcher<Object>
matches
in class ArgumentMatcher<Object>
actual
- the argumentBaseMatcher
public void describeTo(Description description)
SelfDescribing
describeTo
in interface SelfDescribing
describeTo
in class ArgumentMatcher<Object>
description
- The description to be built or appended to.protected final Object getWanted()
public SelfDescribing withExtraTypeInfo()
withExtraTypeInfo
in interface ContainsExtraTypeInformation
public boolean typeMatches(Object object)
typeMatches
in interface ContainsExtraTypeInformation
Copyright © 2018. All rights reserved.