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

org.graylog2.rest.models.system.indexer.responses.AutoValue_IndexRangesResponse Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version

package org.graylog2.rest.models.system.indexer.responses;

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

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

  private final int total;
  private final List ranges;

  AutoValue_IndexRangesResponse(
      int total,
      List ranges) {
    this.total = total;
    if (ranges == null) {
      throw new NullPointerException("Null ranges");
    }
    this.ranges = ranges;
  }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy