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

org.graylog2.rest.models.tools.requests.$AutoValue_SplitAndIndexTestRequest Maven / Gradle / Ivy

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

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

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

  private final String string;

  private final String splitBy;

  private final int index;

  $AutoValue_SplitAndIndexTestRequest(
      String string,
      String splitBy,
      int index) {
    if (string == null) {
      throw new NullPointerException("Null string");
    }
    this.string = string;
    if (splitBy == null) {
      throw new NullPointerException("Null splitBy");
    }
    this.splitBy = splitBy;
    this.index = index;
  }

  @JsonProperty
  @Override
  public String string() {
    return string;
  }

  @JsonProperty("split_by")
  @Override
  public String splitBy() {
    return splitBy;
  }

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

  @Override
  public String toString() {
    return "SplitAndIndexTestRequest{"
        + "string=" + string + ", "
        + "splitBy=" + splitBy + ", "
        + "index=" + index
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SplitAndIndexTestRequest) {
      SplitAndIndexTestRequest that = (SplitAndIndexTestRequest) o;
      return this.string.equals(that.string())
          && this.splitBy.equals(that.splitBy())
          && this.index == that.index();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy