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

org.graylog2.contentpacks.model.entities.$AutoValue_GrokPatternEntity Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.contentpacks.model.entities;

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

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

  private final String name;

  private final String pattern;

  $AutoValue_GrokPatternEntity(
      String name,
      String pattern) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (pattern == null) {
      throw new NullPointerException("Null pattern");
    }
    this.pattern = pattern;
  }

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

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

  @Override
  public String toString() {
    return "GrokPatternEntity{"
         + "name=" + name + ", "
         + "pattern=" + pattern
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GrokPatternEntity) {
      GrokPatternEntity that = (GrokPatternEntity) o;
      return this.name.equals(that.name())
          && this.pattern.equals(that.pattern());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy