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

com.google.gerrit.server.change.AutoValue_RebaseUtil_Base Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.server.change;

import com.google.gerrit.entities.PatchSet;
import com.google.gerrit.server.notedb.ChangeNotes;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RebaseUtil_Base extends RebaseUtil.Base {

  private final ChangeNotes notes;

  private final PatchSet patchSet;

  AutoValue_RebaseUtil_Base(
      ChangeNotes notes,
      PatchSet patchSet) {
    if (notes == null) {
      throw new NullPointerException("Null notes");
    }
    this.notes = notes;
    if (patchSet == null) {
      throw new NullPointerException("Null patchSet");
    }
    this.patchSet = patchSet;
  }

  @Override
  public ChangeNotes notes() {
    return notes;
  }

  @Override
  public PatchSet patchSet() {
    return patchSet;
  }

  @Override
  public String toString() {
    return "Base{"
        + "notes=" + notes + ", "
        + "patchSet=" + patchSet
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RebaseUtil.Base) {
      RebaseUtil.Base that = (RebaseUtil.Base) o;
      return this.notes.equals(that.notes())
          && this.patchSet.equals(that.patchSet());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy