org.mockito.internal.invocation.ArgumentMatcherAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securemock Show documentation
Show all versions of securemock Show documentation
Libraries for Elasticsearch
The newest version!
/*
* Copyright (c) 2016 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.invocation;
import org.mockito.ArgumentMatcher;
public interface ArgumentMatcherAction {
/**
* Implementations must apply the given matcher to the argument and return
* true if the operation was successful or false
* if not. In this case no more matchers and arguments will be passed by
* {@link MatcherApplicationStrategy#forEachMatcherAndArgument(ArgumentMatcherAction)} to this method.
* .
*
* @param matcher
* to process the argument, never null
* @param argument
* to be processed by the matcher, can be null
* @return
*
* true if the matcher was successfully
* applied to the argument and the next pair of matcher and
* argument should be passed
* false otherwise
*
*
*
*/
boolean apply(ArgumentMatcher> matcher, Object argument);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy