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

com.google.gerrit.entities.$AutoValue_Change_Key Maven / Gradle / Ivy

There is a newer version: 3.10.1
Show newest version
package com.google.gerrit.entities;

import com.google.gson.annotations.SerializedName;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_Change_Key extends Change.Key {

  private final String key;

  $AutoValue_Change_Key(
      String key) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
  }

  @SerializedName("id")
  @Override
  String key() {
    return key;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Change.Key) {
      Change.Key that = (Change.Key) o;
      return this.key.equals(that.key());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy