|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.core.IsEqual<T>
public class IsEqual<T>
Is the value equal to another value, as tested by the
Object.equals(java.lang.Object)
invokedMethod?
Constructor Summary | |
---|---|
IsEqual(T equalArg)
|
Method Summary | ||
---|---|---|
void |
describeTo(Description description)
Generates a description of the object. |
|
static
|
equalTo(T operand)
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod? |
|
boolean |
matches(Object arg)
Evaluates the matcher for argument item. |
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IsEqual(T equalArg)
Method Detail |
---|
public boolean matches(Object arg)
Matcher
This method matches against Object, instead of the generic type T. This is because the caller of the Matcher does not know at runtime what the type is (because of type erasure with Java generics). It is down to the implementations to check the correct type.
arg
- the object against which the matcher is evaluated.
true
if item matches, otherwise false
.BaseMatcher
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <T> Matcher<T> equalTo(T operand)
Object.equals(java.lang.Object)
invokedMethod?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |