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

org.graylog.plugins.pipelineprocessor.functions.syslog.AutoValue_SyslogPriorityAsString Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.pipelineprocessor.functions.syslog;

import javax.annotation.Generated;

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

  private final String level;

  private final String facility;

  AutoValue_SyslogPriorityAsString(
      String level,
      String facility) {
    if (level == null) {
      throw new NullPointerException("Null level");
    }
    this.level = level;
    if (facility == null) {
      throw new NullPointerException("Null facility");
    }
    this.facility = facility;
  }

  @Override
  public String getLevel() {
    return level;
  }

  @Override
  public String getFacility() {
    return facility;
  }

  @Override
  public String toString() {
    return "SyslogPriorityAsString{"
        + "level=" + level + ", "
        + "facility=" + facility
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SyslogPriorityAsString) {
      SyslogPriorityAsString that = (SyslogPriorityAsString) o;
      return this.level.equals(that.getLevel())
          && this.facility.equals(that.getFacility());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy