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

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

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

import com.google.common.collect.ImmutableSet;
import com.google.gerrit.entities.PatchSetApproval;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LabelNormalizer_Result extends LabelNormalizer.Result {

  private final ImmutableSet unchanged;

  private final ImmutableSet updated;

  private final ImmutableSet deleted;

  AutoValue_LabelNormalizer_Result(
      ImmutableSet unchanged,
      ImmutableSet updated,
      ImmutableSet deleted) {
    if (unchanged == null) {
      throw new NullPointerException("Null unchanged");
    }
    this.unchanged = unchanged;
    if (updated == null) {
      throw new NullPointerException("Null updated");
    }
    this.updated = updated;
    if (deleted == null) {
      throw new NullPointerException("Null deleted");
    }
    this.deleted = deleted;
  }

  @Override
  public ImmutableSet unchanged() {
    return unchanged;
  }

  @Override
  public ImmutableSet updated() {
    return updated;
  }

  @Override
  public ImmutableSet deleted() {
    return deleted;
  }

  @Override
  public String toString() {
    return "Result{"
        + "unchanged=" + unchanged + ", "
        + "updated=" + updated + ", "
        + "deleted=" + deleted
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LabelNormalizer.Result) {
      LabelNormalizer.Result that = (LabelNormalizer.Result) o;
      return this.unchanged.equals(that.unchanged())
          && this.updated.equals(that.updated())
          && this.deleted.equals(that.deleted());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= unchanged.hashCode();
    h$ *= 1000003;
    h$ ^= updated.hashCode();
    h$ *= 1000003;
    h$ ^= deleted.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy