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

hydra.ext.org.apache.tinkerpop.gremlin.WithArgs 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 WithArgs implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.WithArgs");
  
  public static final hydra.core.Name FIELD_NAME_KEYS = new hydra.core.Name("keys");
  
  public static final hydra.core.Name FIELD_NAME_VALUES = new hydra.core.Name("values");
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.WithArgsKeys keys;
  
  public final hydra.util.Opt values;
  
  public WithArgs (hydra.ext.org.apache.tinkerpop.gremlin.WithArgsKeys keys, hydra.util.Opt values) {
    java.util.Objects.requireNonNull((keys));
    java.util.Objects.requireNonNull((values));
    this.keys = keys;
    this.values = values;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof WithArgs)) {
      return false;
    }
    WithArgs o = (WithArgs) (other);
    return keys.equals(o.keys) && values.equals(o.values);
  }
  
  @Override
  public int hashCode() {
    return 2 * keys.hashCode() + 3 * values.hashCode();
  }
  
  public WithArgs withKeys(hydra.ext.org.apache.tinkerpop.gremlin.WithArgsKeys keys) {
    java.util.Objects.requireNonNull((keys));
    return new WithArgs(keys, values);
  }
  
  public WithArgs withValues(hydra.util.Opt values) {
    java.util.Objects.requireNonNull((values));
    return new WithArgs(keys, values);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy