package io.jenkins.docker.client;

import com.google.common.base.Objects;

class DockerClientParameters {
    final String dockerUri;
    final String credentialsId;
    final Integer readTimeoutInMsOrNull;
    final Integer connectTimeoutInMsOrNull;

    DockerClientParameters(String dockerUri, String credentialsId, Integer readTimeoutInMsOrNull,
            Integer connectTimeoutInMsOrNull) {
        this.dockerUri = dockerUri;
        this.credentialsId = credentialsId;
        this.readTimeoutInMsOrNull = readTimeoutInMsOrNull;
        this.connectTimeoutInMsOrNull = connectTimeoutInMsOrNull;
    }

    public String getDockerUri() {
        return dockerUri;
    }

    public String getCredentialsId() {
        return credentialsId;
    }

    public Integer getReadTimeoutInMsOrNull() {
        return readTimeoutInMsOrNull;
    }

    public Integer getConnectTimeoutInMsOrNull() {
        return connectTimeoutInMsOrNull;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(dockerUri, credentialsId, connectTimeoutInMsOrNull, readTimeoutInMsOrNull);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final DockerClientParameters other = (DockerClientParameters) obj;
        return Objects.equal(dockerUri, other.dockerUri) && Objects.equal(credentialsId, other.credentialsId)
                && Objects.equal(readTimeoutInMsOrNull, other.readTimeoutInMsOrNull)
                && Objects.equal(connectTimeoutInMsOrNull, other.connectTimeoutInMsOrNull);
    }

    @Override
    public String toString() {
        return "DockerClientParameters{" +
                "dockerUri='" + dockerUri + '\'' +
                ", credentialsId='" + credentialsId + '\'' +
                ", readTimeoutInMsOrNull=" + readTimeoutInMsOrNull +
                ", connectTimeoutInMsOrNull=" + connectTimeoutInMsOrNull +
                '}';
    }
}
@@ -41,30 +41,17 @@
 ort 
-com.google.common.base
+java.util
 .Obj
@@ -1032,20 +1032,16 @@
 cts.hash
-Code
 (dockerU
@@ -1442,16 +1442,17 @@
 ts.equal
+s
 (dockerU
@@ -1488,16 +1488,17 @@
 ts.equal
+s
 (credent
@@ -1559,16 +1559,17 @@
 ts.equal
+s
 (readTim
@@ -1646,16 +1646,17 @@
 ts.equal
+s
 (connect

Migrate from `com.google.common.base.Objects` to `java.util.Objects` (#848)