io.dekorate.halkyon.model.DoneableComponentList 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 DoneableComponentList extends ComponentListFluentImpl implements Doneable {
private final ComponentListBuilder builder;
private final Function function;
public DoneableComponentList(Function function) {
super();this.builder=new ComponentListBuilder(this);this.function=function;
}
public DoneableComponentList(ComponentList item,Function function) {
super(item);this.builder=new ComponentListBuilder(this, item);this.function=function;
}
public DoneableComponentList(ComponentList item) {
super(item);this.builder=new ComponentListBuilder(this, item);this.function=new Function() {
public ComponentList apply(ComponentList item) {
return item;
}
}
;
}
public ComponentList done() {
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy