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

org.graylog.plugins.views.search.searchtypes.pivot.AutoValue_PivotResult_Value Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.search.searchtypes.pivot;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PivotResult_Value extends PivotResult.Value {

  private final ImmutableList key;

  private final Object value;

  private final boolean rollup;

  private final String source;

  AutoValue_PivotResult_Value(
      ImmutableList key,
      @Nullable Object value,
      boolean rollup,
      String source) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    this.value = value;
    this.rollup = rollup;
    if (source == null) {
      throw new NullPointerException("Null source");
    }
    this.source = source;
  }

  @JsonProperty
  @Override
  public ImmutableList key() {
    return key;
  }

  @JsonProperty
  @Nullable
  @Override
  public Object value() {
    return value;
  }

  @JsonProperty
  @Override
  public boolean rollup() {
    return rollup;
  }

  @JsonProperty
  @Override
  public String source() {
    return source;
  }

  @Override
  public String toString() {
    return "Value{"
        + "key=" + key + ", "
        + "value=" + value + ", "
        + "rollup=" + rollup + ", "
        + "source=" + source
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PivotResult.Value) {
      PivotResult.Value that = (PivotResult.Value) o;
      return this.key.equals(that.key())
          && (this.value == null ? that.value() == null : this.value.equals(that.value()))
          && this.rollup == that.rollup()
          && this.source.equals(that.source());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= key.hashCode();
    h$ *= 1000003;
    h$ ^= (value == null) ? 0 : value.hashCode();
    h$ *= 1000003;
    h$ ^= rollup ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= source.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy