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

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

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

import java.util.Optional;
import javax.annotation.Generated;
import org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.TimeRange;

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

  private final TimeRange timerange;

  private final String query;

  private final Optional lowerIsBetter;

  private final Optional trend;

  private final Optional streamId;

  AutoValue_SearchResultCountConfig(
      TimeRange timerange,
      String query,
      Optional lowerIsBetter,
      Optional trend,
      Optional streamId) {
    if (timerange == null) {
      throw new NullPointerException("Null timerange");
    }
    this.timerange = timerange;
    if (query == null) {
      throw new NullPointerException("Null query");
    }
    this.query = query;
    if (lowerIsBetter == null) {
      throw new NullPointerException("Null lowerIsBetter");
    }
    this.lowerIsBetter = lowerIsBetter;
    if (trend == null) {
      throw new NullPointerException("Null trend");
    }
    this.trend = trend;
    if (streamId == null) {
      throw new NullPointerException("Null streamId");
    }
    this.streamId = streamId;
  }

  @Override
  public TimeRange timerange() {
    return timerange;
  }

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

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

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

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

  @Override
  public String toString() {
    return "SearchResultCountConfig{"
        + "timerange=" + timerange + ", "
        + "query=" + query + ", "
        + "lowerIsBetter=" + lowerIsBetter + ", "
        + "trend=" + trend + ", "
        + "streamId=" + streamId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchResultCountConfig) {
      SearchResultCountConfig that = (SearchResultCountConfig) o;
      return this.timerange.equals(that.timerange())
          && this.query.equals(that.query())
          && this.lowerIsBetter.equals(that.lowerIsBetter())
          && this.trend.equals(that.trend())
          && this.streamId.equals(that.streamId());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= timerange.hashCode();
    h$ *= 1000003;
    h$ ^= query.hashCode();
    h$ *= 1000003;
    h$ ^= lowerIsBetter.hashCode();
    h$ *= 1000003;
    h$ ^= trend.hashCode();
    h$ *= 1000003;
    h$ ^= streamId.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy