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

hydra.langs.sql.ansi.BooleanFactor Maven / Gradle / Ivy

package hydra.langs.sql.ansi;

import java.io.Serializable;

public class BooleanFactor implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/sql/ansi.BooleanFactor");
  
  public final java.util.Optional nOT;
  
  public final hydra.langs.sql.ansi.BooleanTest booleanTest;
  
  public BooleanFactor (java.util.Optional nOT, hydra.langs.sql.ansi.BooleanTest booleanTest) {
    this.nOT = nOT;
    this.booleanTest = booleanTest;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof BooleanFactor)) {
      return false;
    }
    BooleanFactor o = (BooleanFactor) (other);
    return nOT.equals(o.nOT) && booleanTest.equals(o.booleanTest);
  }
  
  @Override
  public int hashCode() {
    return 2 * nOT.hashCode() + 3 * booleanTest.hashCode();
  }
  
  public BooleanFactor withNOT(java.util.Optional nOT) {
    return new BooleanFactor(nOT, booleanTest);
  }
  
  public BooleanFactor withBooleanTest(hydra.langs.sql.ansi.BooleanTest booleanTest) {
    return new BooleanFactor(nOT, booleanTest);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy