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

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets.AutoValue_StackedSeries Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets;

import javax.annotation.processing.Generated;

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

  private final String query;

  private final String field;

  private final String statisticalFunction;

  AutoValue_StackedSeries(
      String query,
      String field,
      String statisticalFunction) {
    if (query == null) {
      throw new NullPointerException("Null query");
    }
    this.query = query;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    if (statisticalFunction == null) {
      throw new NullPointerException("Null statisticalFunction");
    }
    this.statisticalFunction = statisticalFunction;
  }

  @Override
  public String query() {
    return query;
  }

  @Override
  public String field() {
    return field;
  }

  @Override
  public String statisticalFunction() {
    return statisticalFunction;
  }

  @Override
  public String toString() {
    return "StackedSeries{"
        + "query=" + query + ", "
        + "field=" + field + ", "
        + "statisticalFunction=" + statisticalFunction
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StackedSeries) {
      StackedSeries that = (StackedSeries) o;
      return this.query.equals(that.query())
          && this.field.equals(that.field())
          && this.statisticalFunction.equals(that.statisticalFunction());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= query.hashCode();
    h$ *= 1000003;
    h$ ^= field.hashCode();
    h$ *= 1000003;
    h$ ^= statisticalFunction.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy