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

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

There is a newer version: 3.10.0-rc4
Show newest version


package com.google.gerrit.server.notedb;

import com.google.common.collect.ImmutableMap;
import com.google.gerrit.reviewdb.client.Account;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NoteDbChangeState_RefState extends NoteDbChangeState.RefState {

  private final ObjectId changeMetaId;

  private final ImmutableMap draftIds;

  AutoValue_NoteDbChangeState_RefState(
      ObjectId changeMetaId,
      ImmutableMap draftIds) {
    if (changeMetaId == null) {
      throw new NullPointerException("Null changeMetaId");
    }
    this.changeMetaId = changeMetaId;
    if (draftIds == null) {
      throw new NullPointerException("Null draftIds");
    }
    this.draftIds = draftIds;
  }

  @Override
  ObjectId changeMetaId() {
    return changeMetaId;
  }

  @Override
  ImmutableMap draftIds() {
    return draftIds;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NoteDbChangeState.RefState) {
      NoteDbChangeState.RefState that = (NoteDbChangeState.RefState) o;
      return (this.changeMetaId.equals(that.changeMetaId()))
           && (this.draftIds.equals(that.draftIds()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy