com.dadrox.sbt.junit.ExistentialArg Maven / Gradle / Ivy
package com.dadrox.sbt.junit;
import java.util.List;
public class ExistentialArg implements Arg {
private List _names;
private boolean _defaultArg;
public ExistentialArg(List names, boolean defaultArg) {
this._names = names;
this._defaultArg = defaultArg;
}
@Override
public Boolean defaultArg() {
return _defaultArg;
}
@Override
public Boolean resolve(List args) {
for (String arg : args) {
for (String name : _names) {
if (name.equals(arg)) return true;
}
}
return _defaultArg;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy