hydra.ext.org.apache.tinkerpop.gremlin.WithArgs 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 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);
}
}