org.graylog.security.authservice.backend.AutoValue_ADAuthServiceBackendConfig_HostAndPort Maven / Gradle / Ivy
package org.graylog.security.authservice.backend;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ADAuthServiceBackendConfig_HostAndPort extends ADAuthServiceBackendConfig.HostAndPort {
private final String host;
private final int port;
AutoValue_ADAuthServiceBackendConfig_HostAndPort(
String host,
int port) {
if (host == null) {
throw new NullPointerException("Null host");
}
this.host = host;
this.port = port;
}
@JsonProperty("host")
@Override
public String host() {
return host;
}
@JsonProperty("port")
@Override
public int port() {
return port;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ADAuthServiceBackendConfig.HostAndPort) {
ADAuthServiceBackendConfig.HostAndPort that = (ADAuthServiceBackendConfig.HostAndPort) o;
return this.host.equals(that.host())
&& this.port == that.port();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= host.hashCode();
h$ *= 1000003;
h$ ^= port;
return h$;
}
}