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

com.proofpoint.discovery.AutoValue_Services Maven / Gradle / Ivy

The newest version!
package com.proofpoint.discovery;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Services extends Services {

  private final String environment;

  private final Collection services;

  AutoValue_Services(
      String environment,
      Collection services) {
    if (environment == null) {
      throw new NullPointerException("Null environment");
    }
    this.environment = environment;
    if (services == null) {
      throw new NullPointerException("Null services");
    }
    this.services = services;
  }

  @JsonProperty
  @Override
  public String getEnvironment() {
    return environment;
  }

  @JsonProperty
  @Override
  public Collection getServices() {
    return services;
  }

  @Override
  public String toString() {
    return "Services{"
        + "environment=" + environment + ", "
        + "services=" + services
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Services) {
      Services that = (Services) o;
      return this.environment.equals(that.getEnvironment())
          && this.services.equals(that.getServices());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= environment.hashCode();
    h$ *= 1000003;
    h$ ^= services.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy