All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dekorate.application.config.IconBuilder Maven / Gradle / Ivy

There is a newer version: 2.0.0.beta8
Show newest version
package io.dekorate.application.config;

import io.dekorate.deps.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class IconBuilder extends IconFluentImpl implements VisitableBuilder{

    IconFluent fluent;
    Boolean validationEnabled;

    public IconBuilder(){
            this(true);
    }
    public IconBuilder(Boolean validationEnabled){
            this(new Icon(), validationEnabled);
    }
    public IconBuilder(IconFluent fluent){
            this(fluent, true);
    }
    public IconBuilder(IconFluent fluent,Boolean validationEnabled){
            this(fluent, new Icon(), validationEnabled);
    }
    public IconBuilder(IconFluent fluent,io.dekorate.application.config.Icon instance){
            this(fluent, instance, true);
    }
    public IconBuilder(IconFluent fluent,io.dekorate.application.config.Icon instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withType(instance.getType()); 
            fluent.withSrc(instance.getSrc()); 
            fluent.withSize(instance.getSize()); 
            this.validationEnabled = validationEnabled; 
    }
    public IconBuilder(io.dekorate.application.config.Icon instance){
            this(instance,true);
    }
    public IconBuilder(io.dekorate.application.config.Icon instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withType(instance.getType()); 
            this.withSrc(instance.getSrc()); 
            this.withSize(instance.getSize()); 
            this.validationEnabled = validationEnabled; 
    }

    public EditableIcon build(){
            EditableIcon buildable = new EditableIcon(fluent.getType(),fluent.getSrc(),fluent.getSize());
            return buildable;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            IconBuilder that = (IconBuilder) o;
            if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

            if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy