hydra.ext.org.apache.tinkerpop.gremlin.DirectionAndVarargs 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 DirectionAndVarargs implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.DirectionAndVarargs");
public static final hydra.core.Name FIELD_NAME_DIRECTION = new hydra.core.Name("direction");
public static final hydra.core.Name FIELD_NAME_VARARGS = new hydra.core.Name("varargs");
public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalDirectionArgument direction;
public final java.util.List varargs;
public DirectionAndVarargs (hydra.ext.org.apache.tinkerpop.gremlin.TraversalDirectionArgument direction, java.util.List varargs) {
java.util.Objects.requireNonNull((direction));
java.util.Objects.requireNonNull((varargs));
this.direction = direction;
this.varargs = varargs;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof DirectionAndVarargs)) {
return false;
}
DirectionAndVarargs o = (DirectionAndVarargs) (other);
return direction.equals(o.direction) && varargs.equals(o.varargs);
}
@Override
public int hashCode() {
return 2 * direction.hashCode() + 3 * varargs.hashCode();
}
public DirectionAndVarargs withDirection(hydra.ext.org.apache.tinkerpop.gremlin.TraversalDirectionArgument direction) {
java.util.Objects.requireNonNull((direction));
return new DirectionAndVarargs(direction, varargs);
}
public DirectionAndVarargs withVarargs(java.util.List varargs) {
java.util.Objects.requireNonNull((varargs));
return new DirectionAndVarargs(direction, varargs);
}
}