hydra.ext.org.apache.tinkerpop.gremlin.TraversalSourceQuery 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
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 TraversalSourceQuery implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalSourceQuery");
public static final hydra.core.Name FIELD_NAME_SOURCE = new hydra.core.Name("source");
public static final hydra.core.Name FIELD_NAME_TRANSACTION_PART = new hydra.core.Name("transactionPart");
public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalSource source;
public final hydra.util.Opt transactionPart;
public TraversalSourceQuery (hydra.ext.org.apache.tinkerpop.gremlin.TraversalSource source, hydra.util.Opt transactionPart) {
java.util.Objects.requireNonNull((source));
java.util.Objects.requireNonNull((transactionPart));
this.source = source;
this.transactionPart = transactionPart;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof TraversalSourceQuery)) {
return false;
}
TraversalSourceQuery o = (TraversalSourceQuery) (other);
return source.equals(o.source) && transactionPart.equals(o.transactionPart);
}
@Override
public int hashCode() {
return 2 * source.hashCode() + 3 * transactionPart.hashCode();
}
public TraversalSourceQuery withSource(hydra.ext.org.apache.tinkerpop.gremlin.TraversalSource source) {
java.util.Objects.requireNonNull((source));
return new TraversalSourceQuery(source, transactionPart);
}
public TraversalSourceQuery withTransactionPart(hydra.util.Opt transactionPart) {
java.util.Objects.requireNonNull((transactionPart));
return new TraversalSourceQuery(source, transactionPart);
}
}