com.redhat.lightblue.assoc.ep.MakeDocCtx Maven / Gradle / Ivy
package com.redhat.lightblue.assoc.ep;
import java.util.stream.Stream;
import com.redhat.lightblue.crud.DocCtx;
/**
* Decorator interface that gets a StepResult and return StepResult
*/
public class MakeDocCtx implements StepResult {
private final StepResult result;
public MakeDocCtx(StepResult result) {
this.result=result;
}
@Override
public Stream stream() {
return result.stream().map(d->new DocCtx(d.getDoc()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy