public class TypeSafeMatching extends Object implements ArgumentMatcherAction
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(ArgumentMatcher matcher,
Object argument)
Implementations must apply the given matcher to the argument and return
true if the operation was successful or false
if not. |
static ArgumentMatcherAction |
matchesTypeSafe() |
public static ArgumentMatcherAction matchesTypeSafe()
public boolean apply(ArgumentMatcher matcher, Object argument)
ArgumentMatcherActiontrue if the operation was successful or false
if not. In this case no more matchers and arguments will be passed by
MatcherApplicationStrategy.forEachMatcherAndArgument(ArgumentMatcherAction) to this method.
.apply in interface ArgumentMatcherActionmatcher - to process the argument, never nullargument - to be processed by the matcher, can be nulltrue if the matcher was successfully
applied to the argument and the next pair of matcher and
argument should be passed
false otherwise
Copyright © 2024. All rights reserved.