hydra.ext.org.apache.tinkerpop.gremlin.ServiceCall 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 ServiceCall implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.ServiceCall");
public static final hydra.core.Name FIELD_NAME_SERVICE = new hydra.core.Name("service");
public static final hydra.core.Name FIELD_NAME_ARGUMENTS = new hydra.core.Name("arguments");
public final hydra.ext.org.apache.tinkerpop.gremlin.StringArgument service;
public final hydra.ext.org.apache.tinkerpop.gremlin.ServiceArguments arguments;
public ServiceCall (hydra.ext.org.apache.tinkerpop.gremlin.StringArgument service, hydra.ext.org.apache.tinkerpop.gremlin.ServiceArguments arguments) {
java.util.Objects.requireNonNull((service));
java.util.Objects.requireNonNull((arguments));
this.service = service;
this.arguments = arguments;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ServiceCall)) {
return false;
}
ServiceCall o = (ServiceCall) (other);
return service.equals(o.service) && arguments.equals(o.arguments);
}
@Override
public int hashCode() {
return 2 * service.hashCode() + 3 * arguments.hashCode();
}
public ServiceCall withService(hydra.ext.org.apache.tinkerpop.gremlin.StringArgument service) {
java.util.Objects.requireNonNull((service));
return new ServiceCall(service, arguments);
}
public ServiceCall withArguments(hydra.ext.org.apache.tinkerpop.gremlin.ServiceArguments arguments) {
java.util.Objects.requireNonNull((arguments));
return new ServiceCall(service, arguments);
}
}