org.hamcrest.core
public class IsEqual<T> extends org.hamcrest.BaseMatcher<T>
Object.equals(java.lang.Object)
invokedMethod?Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
static <T> org.hamcrest.Matcher<T> |
equalTo(T operand)
Is the value equal to another value, as tested by the
Object.equals(java.lang.Object) invokedMethod? |
boolean |
matches(java.lang.Object arg)
Evaluates the matcher for argument item.
|
public IsEqual(T equalArg)
public boolean matches(java.lang.Object arg)
org.hamcrest.Matcher
arg
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribing
description
- The description to be built or appended to.public static <T> org.hamcrest.Matcher<T> equalTo(T operand)
Object.equals(java.lang.Object)
invokedMethod?