org.pitest.sequence.QueryParams Maven / Gradle / Ivy
package org.pitest.sequence;
public final class QueryParams {
private final Match ignoring;
private final boolean debug;
QueryParams(Match ignoring, boolean debug) {
this.ignoring = ignoring;
this.debug = debug;
}
public static QueryParams params(Class clazz) {
return params();
}
public static QueryParams params() {
return new QueryParams<>(Match.never(), false);
}
public QueryParams withIgnores(Match ignore) {
return new QueryParams<>(ignore, this.debug);
}
public QueryParams withDebug(boolean debug) {
return new QueryParams<>(this.ignoring, debug);
}
public Match ignoring() {
return this.ignoring;
}
public boolean isDebug() {
return this.debug;
}
}