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