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

org.graylog2.rest.models.system.plugins.responses.$AutoValue_PluginList Maven / Gradle / Ivy

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

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

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

  private final List plugins;

  private final int total;

  $AutoValue_PluginList(
      List plugins,
      int total) {
    if (plugins == null) {
      throw new NullPointerException("Null plugins");
    }
    this.plugins = plugins;
    this.total = total;
  }

  @JsonProperty
  @Override
  public List plugins() {
    return plugins;
  }

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy