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

hydra.ext.io.shex.syntax.Percent 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.io.shex.syntax;

import java.io.Serializable;

public class Percent implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.Percent");
  
  public static final hydra.core.Name FIELD_NAME_HEX = new hydra.core.Name("hex");
  
  public static final hydra.core.Name FIELD_NAME_HEX2 = new hydra.core.Name("hex2");
  
  public final hydra.ext.io.shex.syntax.Hex hex;
  
  public final hydra.ext.io.shex.syntax.Hex hex2;
  
  public Percent (hydra.ext.io.shex.syntax.Hex hex, hydra.ext.io.shex.syntax.Hex hex2) {
    java.util.Objects.requireNonNull((hex));
    java.util.Objects.requireNonNull((hex2));
    this.hex = hex;
    this.hex2 = hex2;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof Percent)) {
      return false;
    }
    Percent o = (Percent) (other);
    return hex.equals(o.hex) && hex2.equals(o.hex2);
  }
  
  @Override
  public int hashCode() {
    return 2 * hex.hashCode() + 3 * hex2.hashCode();
  }
  
  public Percent withHex(hydra.ext.io.shex.syntax.Hex hex) {
    java.util.Objects.requireNonNull((hex));
    return new Percent(hex, hex2);
  }
  
  public Percent withHex2(hydra.ext.io.shex.syntax.Hex hex2) {
    java.util.Objects.requireNonNull((hex2));
    return new Percent(hex, hex2);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy