
org.mockserver.model.Not Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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