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

com.spotify.apollo.route.AutoValue_Route_DocString Maven / Gradle / Ivy

There is a newer version: 1.20.4
Show newest version

package com.spotify.apollo.route;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Route_DocString extends Route.DocString {

  private final String summary;
  private final String description;

  AutoValue_Route_DocString(
      String summary,
      String description) {
    if (summary == null) {
      throw new NullPointerException("Null summary");
    }
    this.summary = summary;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
  }

  @Override
  public String summary() {
    return summary;
  }

  @Override
  public String description() {
    return description;
  }

  @Override
  public String toString() {
    return "DocString{"
        + "summary=" + summary + ", "
        + "description=" + description
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Route.DocString) {
      Route.DocString that = (Route.DocString) o;
      return (this.summary.equals(that.summary()))
           && (this.description.equals(that.description()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= summary.hashCode();
    h *= 1000003;
    h ^= description.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy