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

com.spotify.zoltar.AutoValue_Model_Id Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version

package com.spotify.zoltar;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Model_Id extends Model.Id {

  private final String value;

  AutoValue_Model_Id(
      String value) {
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
  }

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

  @Override
  public String toString() {
    return "Id{"
         + "value=" + value
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Model.Id) {
      Model.Id that = (Model.Id) o;
      return (this.value.equals(that.value()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy