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

org.graylog.security.authservice.backend.AutoValue_ADAuthServiceBackendConfig_HostAndPort Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.security.authservice.backend;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.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$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy