com.google.gerrit.server.notedb.AutoValue_IntBlob Maven / Gradle / Ivy
 The newest version!
        
        package com.google.gerrit.server.notedb;
import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IntBlob extends IntBlob {
  private final ObjectId id;
  private final int value;
  AutoValue_IntBlob(
      ObjectId id,
      int value) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    this.value = value;
  }
  @Override
  public ObjectId id() {
    return id;
  }
  @Override
  public int value() {
    return value;
  }
  @Override
  public String toString() {
    return "IntBlob{"
        + "id=" + id + ", "
        + "value=" + value
        + "}";
  }
  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IntBlob) {
      IntBlob that = (IntBlob) o;
      return this.id.equals(that.id())
          && this.value == that.value();
    }
    return false;
  }
  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= id.hashCode();
    h$ *= 1000003;
    h$ ^= value;
    return h$;
  }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy