allow simpler op construction

This commit is contained in:
Jonathan Shook
2020-07-15 08:42:34 -05:00
parent c728eafb67
commit a4b7a8da34

View File

@@ -330,6 +330,11 @@ public class SimpleActivity implements Activity {
}
}
protected <O> OpSequence<O> createOpSequenceFromCommands(Function<CommandTemplate,O> opinit) {
Function<OpTemplate,CommandTemplate> f = CommandTemplate::new;
Function<OpTemplate, O> opTemplateOFunction = f.andThen(opinit);
return createOpSequence(opTemplateOFunction);
}
protected <O> OpSequence<O> createOpSequence(Function<OpTemplate,O> opinit) {
StrInterpolator interp = new StrInterpolator(activityDef);