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

hydra.ext.org.apache.tinkerpop.gremlin.StructureVertex Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show 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 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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy