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

io.dekorate.halkyon.model.RequiredComponentCapabilityFluentImpl Maven / Gradle / Ivy

There is a newer version: 2.0.0.beta2
Show newest version
package io.dekorate.halkyon.model;

import java.lang.StringBuffer;
import java.lang.StringBuilder;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class RequiredComponentCapabilityFluentImpl> extends ComponentCapabilityFluentImpl implements RequiredComponentCapabilityFluent {

    private String boundTo;
    private boolean autoBindable;

    public RequiredComponentCapabilityFluentImpl() { 
    }


    public RequiredComponentCapabilityFluentImpl(RequiredComponentCapability instance) { 
        this.withName(instance.getName()); 
        this.withSpec(instance.getSpec()); 
        this.withParameters(instance.getParameters()); 
        this.withBoundTo(instance.getBoundTo()); 
        this.withAutoBindable(instance.isAutoBindable()); 
    }


    public String getBoundTo() {
        return this.boundTo;
    }

    public A withBoundTo(String boundTo) {
        this.boundTo=boundTo; return (A) this;
    }

    public Boolean hasBoundTo() {
        return this.boundTo != null;
    }

    public A withNewBoundTo(String arg1) {
        return (A)withBoundTo(new String(arg1));
    }

    public A withNewBoundTo(StringBuilder arg1) {
        return (A)withBoundTo(new String(arg1));
    }

    public A withNewBoundTo(StringBuffer arg1) {
        return (A)withBoundTo(new String(arg1));
    }

    public boolean isAutoBindable() {
        return this.autoBindable;
    }

    public A withAutoBindable(boolean autoBindable) {
        this.autoBindable=autoBindable; return (A) this;
    }

    public Boolean hasAutoBindable() {
        return true;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        RequiredComponentCapabilityFluentImpl that = (RequiredComponentCapabilityFluentImpl) o;
        if (boundTo != null ? !boundTo.equals(that.boundTo) :that.boundTo != null) return false;
        if (autoBindable != that.autoBindable) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(boundTo,  autoBindable,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy