All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redhat.lightblue.assoc.ep.MakeDocCtx Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
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