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