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

org.graylog.plugins.views.search.views.$AutoValue_FormattingSettings Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.processing.Generated;
import org.graylog.plugins.views.search.views.formatting.highlighting.HighlightingRule;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_FormattingSettings extends FormattingSettings {

  private final Set highlighting;

  $AutoValue_FormattingSettings(
      Set highlighting) {
    if (highlighting == null) {
      throw new NullPointerException("Null highlighting");
    }
    this.highlighting = highlighting;
  }

  @JsonProperty("highlighting")
  @Override
  public Set highlighting() {
    return highlighting;
  }

  @Override
  public String toString() {
    return "FormattingSettings{"
        + "highlighting=" + highlighting
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof FormattingSettings) {
      FormattingSettings that = (FormattingSettings) o;
      return this.highlighting.equals(that.highlighting());
    }
    return false;
  }

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

  static class Builder extends FormattingSettings.Builder {
    private Set highlighting;
    Builder() {
    }
    @Override
    public FormattingSettings.Builder highlighting(Set highlighting) {
      if (highlighting == null) {
        throw new NullPointerException("Null highlighting");
      }
      this.highlighting = highlighting;
      return this;
    }
    @Override
    public FormattingSettings build() {
      String missing = "";
      if (this.highlighting == null) {
        missing += " highlighting";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_FormattingSettings(
          this.highlighting);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy