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

org.graylog2.rest.models.system.contentpacks.responses.AutoValue_CatalogIndexResponse 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.processing.Generated;
import org.graylog2.contentpacks.model.entities.EntityExcerpt;

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

  private final Set entities;

  AutoValue_CatalogIndexResponse(
      Set entities) {
    if (entities == null) {
      throw new NullPointerException("Null entities");
    }
    this.entities = entities;
  }

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

  @Override
  public String toString() {
    return "CatalogIndexResponse{"
        + "entities=" + entities
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CatalogIndexResponse) {
      CatalogIndexResponse that = (CatalogIndexResponse) o;
      return this.entities.equals(that.entities());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy