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

me.snowdrop.istio.api.mixer.v1.StringMapBuilder Maven / Gradle / Ivy

The newest version!
package me.snowdrop.istio.api.mixer.v1;

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

public class StringMapBuilder extends StringMapFluentImpl implements VisitableBuilder{

    StringMapFluent fluent;
    Boolean validationEnabled;

    public StringMapBuilder(){
            this(true);
    }
    public StringMapBuilder(Boolean validationEnabled){
            this(new StringMap(), validationEnabled);
    }
    public StringMapBuilder(StringMapFluent fluent){
            this(fluent, true);
    }
    public StringMapBuilder(StringMapFluent fluent,Boolean validationEnabled){
            this(fluent, new StringMap(), validationEnabled);
    }
    public StringMapBuilder(StringMapFluent fluent,StringMap instance){
            this(fluent, instance, true);
    }
    public StringMapBuilder(StringMapFluent fluent,StringMap instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withEntries(instance.getEntries()); 
            this.validationEnabled = validationEnabled; 
    }
    public StringMapBuilder(StringMap instance){
            this(instance,true);
    }
    public StringMapBuilder(StringMap instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withEntries(instance.getEntries()); 
            this.validationEnabled = validationEnabled; 
    }

    public StringMap build(){
            StringMap buildable = new StringMap(fluent.getEntries());
            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;
            StringMapBuilder that = (StringMapBuilder) 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 - 2024 Weber Informatics LLC | Privacy Policy