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

org.graylog.plugins.views.search.views.formatting.highlighting.AutoValue_GradientColor Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog.plugins.views.search.views.formatting.highlighting;

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

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

  private final String gradient;

  private final Number lower;

  private final Number upper;

  AutoValue_GradientColor(
      String gradient,
      Number lower,
      Number upper) {
    if (gradient == null) {
      throw new NullPointerException("Null gradient");
    }
    this.gradient = gradient;
    if (lower == null) {
      throw new NullPointerException("Null lower");
    }
    this.lower = lower;
    if (upper == null) {
      throw new NullPointerException("Null upper");
    }
    this.upper = upper;
  }

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

  @JsonProperty
  @Override
  public Number lower() {
    return lower;
  }

  @JsonProperty
  @Override
  public Number upper() {
    return upper;
  }

  @Override
  public String toString() {
    return "GradientColor{"
        + "gradient=" + gradient + ", "
        + "lower=" + lower + ", "
        + "upper=" + upper
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GradientColor) {
      GradientColor that = (GradientColor) o;
      return this.gradient.equals(that.gradient())
          && this.lower.equals(that.lower())
          && this.upper.equals(that.upper());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= gradient.hashCode();
    h$ *= 1000003;
    h$ ^= lower.hashCode();
    h$ *= 1000003;
    h$ ^= upper.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy