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

org.graylog2.system.urlwhitelist.$AutoValue_RegexWhitelistEntry Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.system.urlwhitelist;

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

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

  private final String id;

  private final WhitelistEntry.Type type;

  private final String title;

  private final String value;

  $AutoValue_RegexWhitelistEntry(
      String id,
      WhitelistEntry.Type type,
      String title,
      String value) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
  }

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

  @JsonProperty("type")
  @Override
  public WhitelistEntry.Type type() {
    return type;
  }

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

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

  @Override
  public String toString() {
    return "RegexWhitelistEntry{"
        + "id=" + id + ", "
        + "type=" + type + ", "
        + "title=" + title + ", "
        + "value=" + value
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RegexWhitelistEntry) {
      RegexWhitelistEntry that = (RegexWhitelistEntry) o;
      return this.id.equals(that.id())
          && this.type.equals(that.type())
          && this.title.equals(that.title())
          && this.value.equals(that.value());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy