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

com.google.zetasql.AutoValue_ParseLocationRange Maven / Gradle / Ivy

The newest version!
package com.google.zetasql;

import javax.annotation.Generated;

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

  private final String fileName;

  private final int start;

  private final int end;

  AutoValue_ParseLocationRange(
      String fileName,
      int start,
      int end) {
    if (fileName == null) {
      throw new NullPointerException("Null fileName");
    }
    this.fileName = fileName;
    this.start = start;
    this.end = end;
  }

  @Override
  public String fileName() {
    return fileName;
  }

  @Override
  public int start() {
    return start;
  }

  @Override
  public int end() {
    return end;
  }

  @Override
  public String toString() {
    return "ParseLocationRange{"
        + "fileName=" + fileName + ", "
        + "start=" + start + ", "
        + "end=" + end
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ParseLocationRange) {
      ParseLocationRange that = (ParseLocationRange) o;
      return this.fileName.equals(that.fileName())
          && this.start == that.start()
          && this.end == that.end();
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy