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

com.google.gerrit.server.patch.AutoValue_DiffOperationsImpl_DiffResult Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableMap;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.server.patch.filediff.FileDiffOutput;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DiffOperationsImpl_DiffResult extends DiffOperationsImpl.DiffResult {

  private final FileDiffOutput fileDiff;

  private final ImmutableMap modifiedFiles;

  AutoValue_DiffOperationsImpl_DiffResult(
      @Nullable FileDiffOutput fileDiff,
      @Nullable ImmutableMap modifiedFiles) {
    this.fileDiff = fileDiff;
    this.modifiedFiles = modifiedFiles;
  }

  @Nullable
  @Override
  FileDiffOutput fileDiff() {
    return fileDiff;
  }

  @Nullable
  @Override
  ImmutableMap modifiedFiles() {
    return modifiedFiles;
  }

  @Override
  public String toString() {
    return "DiffResult{"
        + "fileDiff=" + fileDiff + ", "
        + "modifiedFiles=" + modifiedFiles
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DiffOperationsImpl.DiffResult) {
      DiffOperationsImpl.DiffResult that = (DiffOperationsImpl.DiffResult) o;
      return (this.fileDiff == null ? that.fileDiff() == null : this.fileDiff.equals(that.fileDiff()))
          && (this.modifiedFiles == null ? that.modifiedFiles() == null : this.modifiedFiles.equals(that.modifiedFiles()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (fileDiff == null) ? 0 : fileDiff.hashCode();
    h$ *= 1000003;
    h$ ^= (modifiedFiles == null) ? 0 : modifiedFiles.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy