de.gesellix.docker.context.EndpointMetaBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-engine Show documentation
Show all versions of docker-engine Show documentation
Bare HTTP client for the Docker engine api
package de.gesellix.docker.context;
import java.util.Objects;
public class EndpointMetaBase {
private String host;
private Boolean skipTLSVerify;
public EndpointMetaBase(String host, Boolean skipTLSVerify) {
this.host = host;
this.skipTLSVerify = skipTLSVerify;
}
public String getHost() {
return host;
}
public Boolean getSkipTLSVerify() {
return skipTLSVerify;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EndpointMetaBase that = (EndpointMetaBase) o;
return Objects.equals(getHost(), that.getHost()) && Objects.equals(getSkipTLSVerify(), that.getSkipTLSVerify());
}
@Override
public int hashCode() {
return Objects.hash(getHost(), getSkipTLSVerify());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy