hydra.ext.org.apache.tinkerpop.gremlin.RootTraversalQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
// 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);
}
}