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

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

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

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeNotes_Factory_ScanResult extends ChangeNotes.Factory.ScanResult {

  private final ImmutableSet fromPatchSetRefs;

  private final ImmutableSet fromMetaRefs;

  AutoValue_ChangeNotes_Factory_ScanResult(
      ImmutableSet fromPatchSetRefs,
      ImmutableSet fromMetaRefs) {
    if (fromPatchSetRefs == null) {
      throw new NullPointerException("Null fromPatchSetRefs");
    }
    this.fromPatchSetRefs = fromPatchSetRefs;
    if (fromMetaRefs == null) {
      throw new NullPointerException("Null fromMetaRefs");
    }
    this.fromMetaRefs = fromMetaRefs;
  }

  @Override
  ImmutableSet fromPatchSetRefs() {
    return fromPatchSetRefs;
  }

  @Override
  ImmutableSet fromMetaRefs() {
    return fromMetaRefs;
  }

  @Override
  public String toString() {
    return "ScanResult{"
        + "fromPatchSetRefs=" + fromPatchSetRefs + ", "
        + "fromMetaRefs=" + fromMetaRefs
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeNotes.Factory.ScanResult) {
      ChangeNotes.Factory.ScanResult that = (ChangeNotes.Factory.ScanResult) o;
      return this.fromPatchSetRefs.equals(that.fromPatchSetRefs())
          && this.fromMetaRefs.equals(that.fromMetaRefs());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy