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

org.graylog2.rest.models.system.inputs.responses.$AutoValue_InputsList Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.models.system.inputs.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;

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

  private final Set inputs;

  private final int total;

  $AutoValue_InputsList(
      Set inputs,
      int total) {
    if (inputs == null) {
      throw new NullPointerException("Null inputs");
    }
    this.inputs = inputs;
    this.total = total;
  }

  @JsonProperty
  @Override
  public Set inputs() {
    return inputs;
  }

  @JsonProperty
  @Override
  public int total() {
    return total;
  }

  @Override
  public String toString() {
    return "InputsList{"
        + "inputs=" + inputs + ", "
        + "total=" + total
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InputsList) {
      InputsList that = (InputsList) o;
      return this.inputs.equals(that.inputs())
          && this.total == that.total();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy