org.testifyproject.bytebuddy.matcher.NullMatcher Maven / Gradle / Ivy
The newest version!
package org.testifyproject.bytebuddy.matcher;
import lombok.EqualsAndHashCode;
/**
* An element matcher that matches the {@code null} value.
*
* @param The type of the matched entity.
*/
@EqualsAndHashCode(callSuper = false)
public class NullMatcher extends ElementMatcher.Junction.AbstractBase {
@Override
public boolean matches(T target) {
return target == null;
}
@Override
public String toString() {
return "isNull()";
}
}