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

hydra.ext.org.apache.tinkerpop.gremlin.IntegerRange Maven / Gradle / Ivy

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.org.apache.tinkerpop.gremlin;

import java.io.Serializable;

public class IntegerRange implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.IntegerRange");
  
  public static final hydra.core.Name FIELD_NAME_LEFT = new hydra.core.Name("left");
  
  public static final hydra.core.Name FIELD_NAME_RIGHT = new hydra.core.Name("right");
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral left;
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral right;
  
  public IntegerRange (hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral left, hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral right) {
    java.util.Objects.requireNonNull((left));
    java.util.Objects.requireNonNull((right));
    this.left = left;
    this.right = right;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof IntegerRange)) {
      return false;
    }
    IntegerRange o = (IntegerRange) (other);
    return left.equals(o.left) && right.equals(o.right);
  }
  
  @Override
  public int hashCode() {
    return 2 * left.hashCode() + 3 * right.hashCode();
  }
  
  public IntegerRange withLeft(hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral left) {
    java.util.Objects.requireNonNull((left));
    return new IntegerRange(left, right);
  }
  
  public IntegerRange withRight(hydra.ext.org.apache.tinkerpop.gremlin.IntegerLiteral right) {
    java.util.Objects.requireNonNull((right));
    return new IntegerRange(left, right);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy