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

org.graylog2.rest.models.system.contentpacks.responses.$AutoValue_ContentPackInstallationsResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;
import org.graylog2.contentpacks.model.ContentPackInstallation;

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

  private final long total;

  private final Set contentPackInstallations;

  $AutoValue_ContentPackInstallationsResponse(
      long total,
      Set contentPackInstallations) {
    this.total = total;
    if (contentPackInstallations == null) {
      throw new NullPointerException("Null contentPackInstallations");
    }
    this.contentPackInstallations = contentPackInstallations;
  }

  @JsonProperty("total")
  @Override
  public long total() {
    return total;
  }

  @JsonProperty("installations")
  @Override
  public Set contentPackInstallations() {
    return contentPackInstallations;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy