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

org.graylog2.contentpacks.facades.AutoValue_InputWithExtractors Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.contentpacks.facades;

import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
import org.graylog2.inputs.Input;
import org.graylog2.plugin.inputs.Extractor;

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

  private final Input input;

  private final ImmutableList extractors;

  AutoValue_InputWithExtractors(
      Input input,
      ImmutableList extractors) {
    if (input == null) {
      throw new NullPointerException("Null input");
    }
    this.input = input;
    if (extractors == null) {
      throw new NullPointerException("Null extractors");
    }
    this.extractors = extractors;
  }

  @Override
  public Input input() {
    return input;
  }

  @Override
  public ImmutableList extractors() {
    return extractors;
  }

  @Override
  public String toString() {
    return "InputWithExtractors{"
        + "input=" + input + ", "
        + "extractors=" + extractors
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InputWithExtractors) {
      InputWithExtractors that = (InputWithExtractors) o;
      return this.input.equals(that.input())
          && this.extractors.equals(that.extractors());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy