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

org.graylog2.rest.models.system.config.$AutoValue_ClusterConfigList Maven / Gradle / Ivy

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

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

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

  private final int total;

  private final Set classes;

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

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy