io.alauda.kubernetes.api.model.version.DoneableInfo Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.version;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableInfo extends InfoFluentImpl implements Doneable{
private final InfoBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableInfo(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new InfoBuilder(this);this.function=function;
}
public DoneableInfo(Info item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new InfoBuilder(this, item);this.function=function;
}
public DoneableInfo(Info item){
super(item);this.builder=new InfoBuilder(this, item);this.function=new Function() {
public Info apply(Info item) {
return item;
}
}
;
}
public Info done(){
return function.apply(builder.build());
}
}