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

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

There is a newer version: 2024.11.1
Show newest version


package com.google.zetasql;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_TVFRelation_Column extends TVFRelation.Column {

  private final String name;
  private final Type type;

  AutoValue_TVFRelation_Column(
      String name,
      Type type) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
  }

  @Override
  public String getName() {
    return name;
  }

  @Override
  public Type getType() {
    return type;
  }

  @Override
  public String toString() {
    return "Column{"
         + "name=" + name + ", "
         + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TVFRelation.Column) {
      TVFRelation.Column that = (TVFRelation.Column) o;
      return (this.name.equals(that.getName()))
           && (this.type.equals(that.getType()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy