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