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

me.snowdrop.istio.mixer.template.edge.DoneableEdgeList Maven / Gradle / Ivy

package me.snowdrop.istio.mixer.template.edge;

import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;

public class DoneableEdgeList extends EdgeListFluentImpl implements Doneable{

    private final EdgeListBuilder builder;
    private final Function function;

    public DoneableEdgeList(Function function){
            super();this.builder=new EdgeListBuilder(this);this.function=function;
    }
    public DoneableEdgeList(EdgeList item,Function function){
            super(item);this.builder=new EdgeListBuilder(this, item);this.function=function;
    }
    public DoneableEdgeList(EdgeList item){
            super(item);this.builder=new EdgeListBuilder(this, item);this.function=new Function() {
    public EdgeList apply(EdgeList item) {
        return item;
    }
}
;
    }

    public EdgeList done(){
             return function.apply(builder.build());
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy