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

com.google.gerrit.server.notedb.AutoValue_CommitRewriter_RefsUpdate Maven / Gradle / Ivy

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

import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.BatchRefUpdate;
import org.eclipse.jgit.lib.ObjectInserter;
import org.eclipse.jgit.revwalk.RevWalk;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CommitRewriter_RefsUpdate extends CommitRewriter.RefsUpdate {

  private final BatchRefUpdate batchRefUpdate;

  private final RevWalk revWalk;

  private final ObjectInserter inserter;

  AutoValue_CommitRewriter_RefsUpdate(
      BatchRefUpdate batchRefUpdate,
      RevWalk revWalk,
      ObjectInserter inserter) {
    if (batchRefUpdate == null) {
      throw new NullPointerException("Null batchRefUpdate");
    }
    this.batchRefUpdate = batchRefUpdate;
    if (revWalk == null) {
      throw new NullPointerException("Null revWalk");
    }
    this.revWalk = revWalk;
    if (inserter == null) {
      throw new NullPointerException("Null inserter");
    }
    this.inserter = inserter;
  }

  @Override
  BatchRefUpdate batchRefUpdate() {
    return batchRefUpdate;
  }

  @Override
  RevWalk revWalk() {
    return revWalk;
  }

  @Override
  ObjectInserter inserter() {
    return inserter;
  }

  @Override
  public String toString() {
    return "RefsUpdate{"
        + "batchRefUpdate=" + batchRefUpdate + ", "
        + "revWalk=" + revWalk + ", "
        + "inserter=" + inserter
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommitRewriter.RefsUpdate) {
      CommitRewriter.RefsUpdate that = (CommitRewriter.RefsUpdate) o;
      return this.batchRefUpdate.equals(that.batchRefUpdate())
          && this.revWalk.equals(that.revWalk())
          && this.inserter.equals(that.inserter());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy