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

hydra.ext.org.apache.tinkerpop.gremlin.RootTraversalQuery 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.org.apache.tinkerpop.gremlin;

import java.io.Serializable;

public class RootTraversalQuery implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.RootTraversalQuery");
  
  public static final hydra.core.Name FIELD_NAME_ROOT = new hydra.core.Name("root");
  
  public static final hydra.core.Name FIELD_NAME_TERMINAL_METHOD = new hydra.core.Name("terminalMethod");
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root;
  
  public final hydra.util.Opt terminalMethod;
  
  public RootTraversalQuery (hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root, hydra.util.Opt terminalMethod) {
    java.util.Objects.requireNonNull((root));
    java.util.Objects.requireNonNull((terminalMethod));
    this.root = root;
    this.terminalMethod = terminalMethod;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof RootTraversalQuery)) {
      return false;
    }
    RootTraversalQuery o = (RootTraversalQuery) (other);
    return root.equals(o.root) && terminalMethod.equals(o.terminalMethod);
  }
  
  @Override
  public int hashCode() {
    return 2 * root.hashCode() + 3 * terminalMethod.hashCode();
  }
  
  public RootTraversalQuery withRoot(hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root) {
    java.util.Objects.requireNonNull((root));
    return new RootTraversalQuery(root, terminalMethod);
  }
  
  public RootTraversalQuery withTerminalMethod(hydra.util.Opt terminalMethod) {
    java.util.Objects.requireNonNull((terminalMethod));
    return new RootTraversalQuery(root, terminalMethod);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy