javax0.jamal.tools.param.ListParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jamal-tools Show documentation
Show all versions of jamal-tools Show documentation
-in Jamal macro library support tools
package javax0.jamal.tools.param;
import javax0.jamal.api.BadSyntax;
import javax0.jamal.tools.Params;
import java.util.List;
import java.util.stream.Stream;
public class ListParameter extends AbstractTypedParameter> {
public ListParameter(Params.Param> param) {
super(param);
}
public ListParameter optional() {
return this;
}
public List get() throws BadSyntax {
return param.get();
}
public Stream stream() throws BadSyntax {
return get().stream();
}
}