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

com.google.gerrit.server.AutoValue_AssigneeStatusUpdate Maven / Gradle / Ivy

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

import com.google.gerrit.entities.Account;
import java.sql.Timestamp;
import java.util.Optional;
import javax.annotation.Generated;

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

  private final Timestamp date;

  private final Account.Id updatedBy;

  private final Optional currentAssignee;

  AutoValue_AssigneeStatusUpdate(
      Timestamp date,
      Account.Id updatedBy,
      Optional currentAssignee) {
    if (date == null) {
      throw new NullPointerException("Null date");
    }
    this.date = date;
    if (updatedBy == null) {
      throw new NullPointerException("Null updatedBy");
    }
    this.updatedBy = updatedBy;
    if (currentAssignee == null) {
      throw new NullPointerException("Null currentAssignee");
    }
    this.currentAssignee = currentAssignee;
  }

  @Override
  public Timestamp date() {
    return date;
  }

  @Override
  public Account.Id updatedBy() {
    return updatedBy;
  }

  @Override
  public Optional currentAssignee() {
    return currentAssignee;
  }

  @Override
  public String toString() {
    return "AssigneeStatusUpdate{"
         + "date=" + date + ", "
         + "updatedBy=" + updatedBy + ", "
         + "currentAssignee=" + currentAssignee
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AssigneeStatusUpdate) {
      AssigneeStatusUpdate that = (AssigneeStatusUpdate) o;
      return this.date.equals(that.date())
          && this.updatedBy.equals(that.updatedBy())
          && this.currentAssignee.equals(that.currentAssignee());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= date.hashCode();
    h$ *= 1000003;
    h$ ^= updatedBy.hashCode();
    h$ *= 1000003;
    h$ ^= currentAssignee.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy