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

com.google.gerrit.entities.$AutoValue_SubmitRequirementExpressionResult Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableList;
import java.util.Optional;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_SubmitRequirementExpressionResult extends SubmitRequirementExpressionResult {

  private final SubmitRequirementExpression expression;

  private final SubmitRequirementExpressionResult.Status status;

  private final Optional errorMessage;

  private final ImmutableList passingAtoms;

  private final ImmutableList failingAtoms;

  $AutoValue_SubmitRequirementExpressionResult(
      SubmitRequirementExpression expression,
      SubmitRequirementExpressionResult.Status status,
      Optional errorMessage,
      ImmutableList passingAtoms,
      ImmutableList failingAtoms) {
    if (expression == null) {
      throw new NullPointerException("Null expression");
    }
    this.expression = expression;
    if (status == null) {
      throw new NullPointerException("Null status");
    }
    this.status = status;
    if (errorMessage == null) {
      throw new NullPointerException("Null errorMessage");
    }
    this.errorMessage = errorMessage;
    if (passingAtoms == null) {
      throw new NullPointerException("Null passingAtoms");
    }
    this.passingAtoms = passingAtoms;
    if (failingAtoms == null) {
      throw new NullPointerException("Null failingAtoms");
    }
    this.failingAtoms = failingAtoms;
  }

  @Override
  public SubmitRequirementExpression expression() {
    return expression;
  }

  @Override
  public SubmitRequirementExpressionResult.Status status() {
    return status;
  }

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

  @Override
  public ImmutableList passingAtoms() {
    return passingAtoms;
  }

  @Override
  public ImmutableList failingAtoms() {
    return failingAtoms;
  }

  @Override
  public String toString() {
    return "SubmitRequirementExpressionResult{"
        + "expression=" + expression + ", "
        + "status=" + status + ", "
        + "errorMessage=" + errorMessage + ", "
        + "passingAtoms=" + passingAtoms + ", "
        + "failingAtoms=" + failingAtoms
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SubmitRequirementExpressionResult) {
      SubmitRequirementExpressionResult that = (SubmitRequirementExpressionResult) o;
      return this.expression.equals(that.expression())
          && this.status.equals(that.status())
          && this.errorMessage.equals(that.errorMessage())
          && this.passingAtoms.equals(that.passingAtoms())
          && this.failingAtoms.equals(that.failingAtoms());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= expression.hashCode();
    h$ *= 1000003;
    h$ ^= status.hashCode();
    h$ *= 1000003;
    h$ ^= errorMessage.hashCode();
    h$ *= 1000003;
    h$ ^= passingAtoms.hashCode();
    h$ *= 1000003;
    h$ ^= failingAtoms.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy