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

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

There is a newer version: 6.0.0
Show newest version


package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.dashboardwidgets;

import java.util.List;
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_StackedChartConfig extends StackedChartConfig {

  private final TimeRange timerange;

  private final String interval;

  private final String renderer;

  private final String interpolation;

  private final List series;

  private final Optional streamId;

  AutoValue_StackedChartConfig(
      TimeRange timerange,
      String interval,
      String renderer,
      String interpolation,
      List series,
      Optional streamId) {
    if (timerange == null) {
      throw new NullPointerException("Null timerange");
    }
    this.timerange = timerange;
    if (interval == null) {
      throw new NullPointerException("Null interval");
    }
    this.interval = interval;
    if (renderer == null) {
      throw new NullPointerException("Null renderer");
    }
    this.renderer = renderer;
    if (interpolation == null) {
      throw new NullPointerException("Null interpolation");
    }
    this.interpolation = interpolation;
    if (series == null) {
      throw new NullPointerException("Null series");
    }
    this.series = series;
    if (streamId == null) {
      throw new NullPointerException("Null streamId");
    }
    this.streamId = streamId;
  }

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

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

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

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

  @Override
  public List series() {
    return series;
  }

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

  @Override
  public String toString() {
    return "StackedChartConfig{"
         + "timerange=" + timerange + ", "
         + "interval=" + interval + ", "
         + "renderer=" + renderer + ", "
         + "interpolation=" + interpolation + ", "
         + "series=" + series + ", "
         + "streamId=" + streamId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StackedChartConfig) {
      StackedChartConfig that = (StackedChartConfig) o;
      return (this.timerange.equals(that.timerange()))
           && (this.interval.equals(that.interval()))
           && (this.renderer.equals(that.renderer()))
           && (this.interpolation.equals(that.interpolation()))
           && (this.series.equals(that.series()))
           && (this.streamId.equals(that.streamId()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= timerange.hashCode();
    h$ *= 1000003;
    h$ ^= interval.hashCode();
    h$ *= 1000003;
    h$ ^= renderer.hashCode();
    h$ *= 1000003;
    h$ ^= interpolation.hashCode();
    h$ *= 1000003;
    h$ ^= series.hashCode();
    h$ *= 1000003;
    h$ ^= streamId.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy