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

org.graylog2.rest.models.tools.responses.$AutoValue_SplitAndIndexTesterResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final boolean successful;

  private final String cut;

  private final int beginIndex;

  private final int endIndex;

  $AutoValue_SplitAndIndexTesterResponse(
      boolean successful,
      @Nullable String cut,
      int beginIndex,
      int endIndex) {
    this.successful = successful;
    this.cut = cut;
    this.beginIndex = beginIndex;
    this.endIndex = endIndex;
  }

  @JsonProperty
  @Override
  public boolean successful() {
    return successful;
  }

  @JsonProperty
  @Nullable
  @Override
  public String cut() {
    return cut;
  }

  @JsonProperty("begin_index")
  @Override
  public int beginIndex() {
    return beginIndex;
  }

  @JsonProperty("end_index")
  @Override
  public int endIndex() {
    return endIndex;
  }

  @Override
  public String toString() {
    return "SplitAndIndexTesterResponse{"
        + "successful=" + successful + ", "
        + "cut=" + cut + ", "
        + "beginIndex=" + beginIndex + ", "
        + "endIndex=" + endIndex
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SplitAndIndexTesterResponse) {
      SplitAndIndexTesterResponse that = (SplitAndIndexTesterResponse) o;
      return this.successful == that.successful()
          && (this.cut == null ? that.cut() == null : this.cut.equals(that.cut()))
          && this.beginIndex == that.beginIndex()
          && this.endIndex == that.endIndex();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= successful ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= (cut == null) ? 0 : cut.hashCode();
    h$ *= 1000003;
    h$ ^= beginIndex;
    h$ *= 1000003;
    h$ ^= endIndex;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy