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

org.graylog.grn.AutoValue_GRNType Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.grn;

import javax.annotation.processing.Generated;

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

  private final String type;

  private final String permissionPrefix;

  AutoValue_GRNType(
      String type,
      String permissionPrefix) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (permissionPrefix == null) {
      throw new NullPointerException("Null permissionPrefix");
    }
    this.permissionPrefix = permissionPrefix;
  }

  @Override
  public String type() {
    return type;
  }

  @Override
  public String permissionPrefix() {
    return permissionPrefix;
  }

  @Override
  public String toString() {
    return "GRNType{"
        + "type=" + type + ", "
        + "permissionPrefix=" + permissionPrefix
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GRNType) {
      GRNType that = (GRNType) o;
      return this.type.equals(that.type())
          && this.permissionPrefix.equals(that.permissionPrefix());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy