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

au.net.causal.maven.plugins.boxdb.vagrant.BoxDefinition Maven / Gradle / Ivy

There is a newer version: 3.3
Show newest version
package au.net.causal.maven.plugins.boxdb.vagrant;

import java.util.Objects;

public class BoxDefinition
{
    private final String name;
    private final String version;
    private final String provider;

    public BoxDefinition(String name, String version, String provider)
    {
        this.name = name;
        this.version = version;
        this.provider = provider;
    }

    public String getName()
    {
        return name;
    }

    public String getVersion()
    {
        return version;
    }

    public String getProvider()
    {
        return provider;
    }

    @Override
    public String toString()
    {
        final StringBuilder sb = new StringBuilder("BoxDefinition{");
        sb.append("name='").append(name).append('\'');
        sb.append(", version='").append(version).append('\'');
        sb.append(", provider='").append(provider).append('\'');
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o) return true;
        if (!(o instanceof BoxDefinition)) return false;
        final BoxDefinition that = (BoxDefinition) o;
        return name.equals(that.name) &&
                version.equals(that.version) &&
                provider.equals(that.provider);
    }

    @Override
    public int hashCode()
    {
        return Objects.hash(name, version, provider);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy