Top Description Fields Constructors Methods
org.easymock.bytebuddy.matcher

public Class NullMatcher<T>

extends ElementMatcher.Junction.AbstractBase<T>
Class Inheritance
Annotations
@Enhance
Type Parameters
<T>
The type of the matched entity.
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.utility.nullability.MaybeNull

An element matcher that matches the null value.

Field Summary

Modifier and TypeField and Description
private static final NullMatcher<?>
INSTANCE

An instance of this matcher.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <
The type of the matched entity.
T
>
ElementMatcher.Junction<T>

Returns:

A matcher that only matches null.
make
()

Returns a matcher that only matches null.

public boolean
matches(T
The instance to be matched or null.
target
)

Implements org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase:
andor

Field Detail

INSTANCEback to summary
private static final NullMatcher<?> INSTANCE

An instance of this matcher.

Constructor Detail

NullMatcherback to summary
public NullMatcher()

Method Detail

makeback to summary
public static <T> ElementMatcher.Junction<T> make()

Returns a matcher that only matches null.

Parameters
<T>
The type of the matched entity.
Returns:ElementMatcher.Junction<T>

A matcher that only matches null.

Annotations
@SuppressWarnings:unchecked
matchesback to summary
public boolean matches(T target)

Implements org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Doc from org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.

Parameters
target:T

The instance to be matched or null.

Returns:boolean

true if the given element is matched by this matcher or false otherwise.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override