Class NullMatcher<T>
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.NullMatcher<T>
- Type Parameters:
T- The type of the matched entity.
- All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>
An element matcher that matches the
null value.-
Nested Class Summary
Nested classes/interfaces inherited from interface ElementMatcher
ElementMatcher.Junction<S>Nested classes/interfaces inherited from interface ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NullMatcher<?> An instance of this matcher. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ElementMatcher.Junction.AbstractBase
and, or
-
Field Details
-
INSTANCE
An instance of this matcher.
-
-
Constructor Details
-
NullMatcher
public NullMatcher()
-
-
Method Details
-
make
Returns a matcher that only matchesnull.- Type Parameters:
T- The type of the matched entity.- Returns:
- A matcher that only matches
null.
-
matches
Matches a target against this element matcher.- Parameters:
target- The instance to be matched ornull.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
toString
-