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