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