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

org.graylog2.rest.models.dashboards.responses.AutoValue_DashboardList Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version

package org.graylog2.rest.models.dashboards.responses;

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

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

  private final int total;
  private final List> dashboards;

  AutoValue_DashboardList(
      int total,
      List> dashboards) {
    this.total = total;
    if (dashboards == null) {
      throw new NullPointerException("Null dashboards");
    }
    this.dashboards = dashboards;
  }

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

  @JsonProperty
  @Override
  public List> dashboards() {
    return dashboards;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy