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

org.mockserver.model.Not Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author jamesdbloom
 */
public class Not extends ObjectWithJsonToString {

    Boolean not;

    public static  T not(T t) {
        t.not = true;
        return t;
    }

    public static  T not(T t, Boolean not) {
        if (not != null && not) {
            t.not = true;
        }
        return t;
    }

    @JsonIgnore
    public boolean isNot() {
        return not != null && not;
    }

    public Boolean getNot() {
        return not;
    }

    public void setNot(Boolean not) {
        this.not = not;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy