/* * 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 * * * */ boolean apply(ArgumentMatcher matcher, Object argument); }