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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy