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

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

package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import org.graylog2.contentpacks.model.entities.references.ReferenceMap;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

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

  private final ValueReference type;

  private final ReferenceMap configuration;

  $AutoValue_ConverterEntity(
      ValueReference type,
      ReferenceMap configuration) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
  }

  @JsonProperty("type")
  @Override
  public ValueReference type() {
    return type;
  }

  @JsonProperty("configuration")
  @Override
  public ReferenceMap configuration() {
    return configuration;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy