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

com.google.gerrit.server.patch.filediff.AutoValue_Edit Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc7
Show newest version
package com.google.gerrit.server.patch.filediff;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Edit extends Edit {

  private final int beginA;

  private final int endA;

  private final int beginB;

  private final int endB;

  AutoValue_Edit(
      int beginA,
      int endA,
      int beginB,
      int endB) {
    this.beginA = beginA;
    this.endA = endA;
    this.beginB = beginB;
    this.endB = endB;
  }

  @Override
  public int beginA() {
    return beginA;
  }

  @Override
  public int endA() {
    return endA;
  }

  @Override
  public int beginB() {
    return beginB;
  }

  @Override
  public int endB() {
    return endB;
  }

  @Override
  public String toString() {
    return "Edit{"
        + "beginA=" + beginA + ", "
        + "endA=" + endA + ", "
        + "beginB=" + beginB + ", "
        + "endB=" + endB
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Edit) {
      Edit that = (Edit) o;
      return this.beginA == that.beginA()
          && this.endA == that.endA()
          && this.beginB == that.beginB()
          && this.endB == that.endB();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= beginA;
    h$ *= 1000003;
    h$ ^= endA;
    h$ *= 1000003;
    h$ ^= beginB;
    h$ *= 1000003;
    h$ ^= endB;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy