All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockserver.matchers.NotMatcher Maven / Gradle / Ivy

package org.mockserver.matchers;

import org.mockserver.model.Not;
import org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString;

/**
 * @author jamesdbloom
 */
public abstract class NotMatcher extends ObjectWithReflectiveEqualsHashCodeToString implements Matcher {

    boolean not = false;

    public static  MatcherType not(MatcherType matcher) {
        matcher.not = true;
        return matcher;
    }

    boolean reverseResultIfNot(boolean result) {
        return not != result;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy