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

hydra.ext.com.microsoft.kusto.kql.ColumnAlias Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.com.microsoft.kusto.kql;

import java.io.Serializable;

public class ColumnAlias implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.ColumnAlias");
  
  public static final hydra.core.Name FIELD_NAME_COLUMN = new hydra.core.Name("column");
  
  public static final hydra.core.Name FIELD_NAME_ALIAS = new hydra.core.Name("alias");
  
  public final hydra.ext.com.microsoft.kusto.kql.ColumnName column;
  
  public final hydra.ext.com.microsoft.kusto.kql.ColumnName alias;
  
  public ColumnAlias (hydra.ext.com.microsoft.kusto.kql.ColumnName column, hydra.ext.com.microsoft.kusto.kql.ColumnName alias) {
    java.util.Objects.requireNonNull((column));
    java.util.Objects.requireNonNull((alias));
    this.column = column;
    this.alias = alias;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof ColumnAlias)) {
      return false;
    }
    ColumnAlias o = (ColumnAlias) (other);
    return column.equals(o.column) && alias.equals(o.alias);
  }
  
  @Override
  public int hashCode() {
    return 2 * column.hashCode() + 3 * alias.hashCode();
  }
  
  public ColumnAlias withColumn(hydra.ext.com.microsoft.kusto.kql.ColumnName column) {
    java.util.Objects.requireNonNull((column));
    return new ColumnAlias(column, alias);
  }
  
  public ColumnAlias withAlias(hydra.ext.com.microsoft.kusto.kql.ColumnName alias) {
    java.util.Objects.requireNonNull((alias));
    return new ColumnAlias(column, alias);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy