com.greenpepper.call.ResultIsNot Maven / Gradle / Ivy
package com.greenpepper.call;
/**
* ResultIsNot class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class ResultIsNot implements ResultMatcher
{
private final ResultMatcher condition;
/**
* Constructor for ResultIsNot.
*
* @param condition a {@link com.greenpepper.call.ResultMatcher} object.
*/
public ResultIsNot(ResultMatcher condition)
{
this.condition = condition;
}
/** {@inheritDoc} */
public boolean matches(Result result)
{
return !condition.matches( result );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy