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

org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets.AutoValue_PivotSortConfig Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final String type;

  private final String field;

  private final SortConfig.Direction direction;

  AutoValue_PivotSortConfig(
      String type,
      String field,
      SortConfig.Direction direction) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    if (direction == null) {
      throw new NullPointerException("Null direction");
    }
    this.direction = direction;
  }

  @JsonProperty("type")
  @Override
  public String type() {
    return type;
  }

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

  @JsonProperty("direction")
  @Override
  public SortConfig.Direction direction() {
    return direction;
  }

  @Override
  public String toString() {
    return "PivotSortConfig{"
         + "type=" + type + ", "
         + "field=" + field + ", "
         + "direction=" + direction
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PivotSortConfig) {
      PivotSortConfig that = (PivotSortConfig) o;
      return this.type.equals(that.type())
          && this.field.equals(that.field())
          && this.direction.equals(that.direction());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy