hydra.ext.org.apache.tinkerpop.gremlin.StructureVertex 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 StructureVertex implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.StructureVertex");
public static final hydra.core.Name FIELD_NAME_NEW = new hydra.core.Name("new");
public static final hydra.core.Name FIELD_NAME_ID = new hydra.core.Name("id");
public static final hydra.core.Name FIELD_NAME_LABEL = new hydra.core.Name("label");
public final Boolean new_;
public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralArgument id;
public final hydra.ext.org.apache.tinkerpop.gremlin.StringArgument label;
public StructureVertex (Boolean new_, hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralArgument id, hydra.ext.org.apache.tinkerpop.gremlin.StringArgument label) {
java.util.Objects.requireNonNull((new_));
java.util.Objects.requireNonNull((id));
java.util.Objects.requireNonNull((label));
this.new_ = new_;
this.id = id;
this.label = label;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof StructureVertex)) {
return false;
}
StructureVertex o = (StructureVertex) (other);
return new_.equals(o.new_) && id.equals(o.id) && label.equals(o.label);
}
@Override
public int hashCode() {
return 2 * new_.hashCode() + 3 * id.hashCode() + 5 * label.hashCode();
}
public StructureVertex withNew(Boolean new_) {
java.util.Objects.requireNonNull((new_));
return new StructureVertex(new_, id, label);
}
public StructureVertex withId(hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralArgument id) {
java.util.Objects.requireNonNull((id));
return new StructureVertex(new_, id, label);
}
public StructureVertex withLabel(hydra.ext.org.apache.tinkerpop.gremlin.StringArgument label) {
java.util.Objects.requireNonNull((label));
return new StructureVertex(new_, id, label);
}
}