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

hydra.ext.org.apache.tinkerpop.gremlin.SubstringArgs 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 SubstringArgs implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.SubstringArgs");
  
  public static final hydra.core.Name FIELD_NAME_SCOPE = new hydra.core.Name("scope");
  
  public static final hydra.core.Name FIELD_NAME_START = new hydra.core.Name("start");
  
  public static final hydra.core.Name FIELD_NAME_END = new hydra.core.Name("end");
  
  public final hydra.util.Opt scope;
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument start;
  
  public final hydra.util.Opt end;
  
  public SubstringArgs (hydra.util.Opt scope, hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument start, hydra.util.Opt end) {
    java.util.Objects.requireNonNull((scope));
    java.util.Objects.requireNonNull((start));
    java.util.Objects.requireNonNull((end));
    this.scope = scope;
    this.start = start;
    this.end = end;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof SubstringArgs)) {
      return false;
    }
    SubstringArgs o = (SubstringArgs) (other);
    return scope.equals(o.scope) && start.equals(o.start) && end.equals(o.end);
  }
  
  @Override
  public int hashCode() {
    return 2 * scope.hashCode() + 3 * start.hashCode() + 5 * end.hashCode();
  }
  
  public SubstringArgs withScope(hydra.util.Opt scope) {
    java.util.Objects.requireNonNull((scope));
    return new SubstringArgs(scope, start, end);
  }
  
  public SubstringArgs withStart(hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument start) {
    java.util.Objects.requireNonNull((start));
    return new SubstringArgs(scope, start, end);
  }
  
  public SubstringArgs withEnd(hydra.util.Opt end) {
    java.util.Objects.requireNonNull((end));
    return new SubstringArgs(scope, start, end);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy