au.net.causal.maven.plugins.boxdb.vagrant.BoxDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
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);
}
}