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