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

org.graylog2.rest.models.streams.alerts.$AutoValue_AlertConditionListSummary Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.models.streams.alerts;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.processing.Generated;

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

  private final long total;

  private final List conditions;

  $AutoValue_AlertConditionListSummary(
      long total,
      List conditions) {
    this.total = total;
    if (conditions == null) {
      throw new NullPointerException("Null conditions");
    }
    this.conditions = conditions;
  }

  @JsonProperty("total")
  @Override
  public long total() {
    return total;
  }

  @JsonProperty("conditions")
  @Override
  public List conditions() {
    return conditions;
  }

  @Override
  public String toString() {
    return "AlertConditionListSummary{"
        + "total=" + total + ", "
        + "conditions=" + conditions
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AlertConditionListSummary) {
      AlertConditionListSummary that = (AlertConditionListSummary) o;
      return this.total == that.total()
          && this.conditions.equals(that.conditions());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((total >>> 32) ^ total);
    h$ *= 1000003;
    h$ ^= conditions.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy