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

org.graylog2.inputs.extractors.$AutoValue_JsonExtractor_Entry Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.inputs.extractors;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_JsonExtractor_Entry extends JsonExtractor.Entry {

  private final String key;

  private final Object value;

  $AutoValue_JsonExtractor_Entry(
      String key,
      @Nullable Object value) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    this.value = value;
  }

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

  @Nullable
  @Override
  public Object value() {
    return value;
  }

  @Override
  public String toString() {
    return "Entry{"
        + "key=" + key + ", "
        + "value=" + value
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof JsonExtractor.Entry) {
      JsonExtractor.Entry that = (JsonExtractor.Entry) o;
      return this.key.equals(that.key())
          && (this.value == null ? that.value() == null : this.value.equals(that.value()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= key.hashCode();
    h$ *= 1000003;
    h$ ^= (value == null) ? 0 : value.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy