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

hydra.ext.org.apache.tinkerpop.gremlin.TerminatedTraversal 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 TerminatedTraversal implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TerminatedTraversal");
  
  public static final hydra.core.Name FIELD_NAME_ROOT = new hydra.core.Name("root");
  
  public static final hydra.core.Name FIELD_NAME_TERMINAL = new hydra.core.Name("terminal");
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root;
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalTerminalMethod terminal;
  
  public TerminatedTraversal (hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root, hydra.ext.org.apache.tinkerpop.gremlin.TraversalTerminalMethod terminal) {
    java.util.Objects.requireNonNull((root));
    java.util.Objects.requireNonNull((terminal));
    this.root = root;
    this.terminal = terminal;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof TerminatedTraversal)) {
      return false;
    }
    TerminatedTraversal o = (TerminatedTraversal) (other);
    return root.equals(o.root) && terminal.equals(o.terminal);
  }
  
  @Override
  public int hashCode() {
    return 2 * root.hashCode() + 3 * terminal.hashCode();
  }
  
  public TerminatedTraversal withRoot(hydra.ext.org.apache.tinkerpop.gremlin.RootTraversal root) {
    java.util.Objects.requireNonNull((root));
    return new TerminatedTraversal(root, terminal);
  }
  
  public TerminatedTraversal withTerminal(hydra.ext.org.apache.tinkerpop.gremlin.TraversalTerminalMethod terminal) {
    java.util.Objects.requireNonNull((terminal));
    return new TerminatedTraversal(root, terminal);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy