io.dekorate.halkyon.model.DoneableComponentStatus Maven / Gradle / Ivy
package io.dekorate.halkyon.model;
import io.dekorate.deps.kubernetes.api.builder.Function;
import io.dekorate.deps.kubernetes.api.model.Doneable;
public class DoneableComponentStatus extends ComponentStatusFluentImpl implements Doneable{
private final ComponentStatusBuilder builder;
private final Function function;
public DoneableComponentStatus(Function function){
super();this.builder=new ComponentStatusBuilder(this);this.function=function;
}
public DoneableComponentStatus(ComponentStatus item,Function function){
super(item);this.builder=new ComponentStatusBuilder(this, item);this.function=function;
}
public DoneableComponentStatus(ComponentStatus item){
super(item);this.builder=new ComponentStatusBuilder(this, item);this.function=new Function() {
public ComponentStatus apply(ComponentStatus item) {
return item;
}
}
;
}
public ComponentStatus done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy