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

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

package hydra.langs.cypher.openCypher;

import java.io.Serializable;

public class MergeAction implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/cypher/openCypher.MergeAction");
  
  public final Boolean create;
  
  public final java.util.List set;
  
  public MergeAction (Boolean create, java.util.List set) {
    this.create = create;
    this.set = set;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof MergeAction)) {
      return false;
    }
    MergeAction o = (MergeAction) (other);
    return create.equals(o.create) && set.equals(o.set);
  }
  
  @Override
  public int hashCode() {
    return 2 * create.hashCode() + 3 * set.hashCode();
  }
  
  public MergeAction withCreate(Boolean create) {
    return new MergeAction(create, set);
  }
  
  public MergeAction withSet(java.util.List set) {
    return new MergeAction(create, set);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy