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

com.google.gerrit.extensions.common.AutoValue_ChangeInfoDifference Maven / Gradle / Ivy

There is a newer version: 3.11.0
Show newest version
package com.google.gerrit.extensions.common;

import javax.annotation.processing.Generated;

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

  private final ChangeInfo added;

  private final ChangeInfo removed;

  AutoValue_ChangeInfoDifference(
      ChangeInfo added,
      ChangeInfo removed) {
    if (added == null) {
      throw new NullPointerException("Null added");
    }
    this.added = added;
    if (removed == null) {
      throw new NullPointerException("Null removed");
    }
    this.removed = removed;
  }

  @Override
  public ChangeInfo added() {
    return added;
  }

  @Override
  public ChangeInfo removed() {
    return removed;
  }

  @Override
  public String toString() {
    return "ChangeInfoDifference{"
        + "added=" + added + ", "
        + "removed=" + removed
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeInfoDifference) {
      ChangeInfoDifference that = (ChangeInfoDifference) o;
      return this.added.equals(that.added())
          && this.removed.equals(that.removed());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy