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

hydra.langs.cypher.openCypher.With Maven / Gradle / Ivy

package hydra.langs.cypher.openCypher;

import java.io.Serializable;

public class With implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/cypher/openCypher.With");
  
  public final hydra.langs.cypher.openCypher.ProjectionBody projection;
  
  public final java.util.Optional where;
  
  public With (hydra.langs.cypher.openCypher.ProjectionBody projection, java.util.Optional where) {
    this.projection = projection;
    this.where = where;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof With)) {
      return false;
    }
    With o = (With) (other);
    return projection.equals(o.projection) && where.equals(o.where);
  }
  
  @Override
  public int hashCode() {
    return 2 * projection.hashCode() + 3 * where.hashCode();
  }
  
  public With withProjection(hydra.langs.cypher.openCypher.ProjectionBody projection) {
    return new With(projection, where);
  }
  
  public With withWhere(java.util.Optional where) {
    return new With(projection, where);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy