com.github.longdt.vertxservice.processor.AutoValue_MethodDeclaration Maven / Gradle / Ivy
package com.github.longdt.vertxservice.processor;
import java.util.List;
import javax.annotation.processing.Generated;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeParameterElement;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MethodDeclaration extends MethodDeclaration {
private final ExecutableElement method;
private final String action;
private final Class> requestMessageClass;
private final String requestCodec;
private final List parameters;
private final String replyCodec;
private final Class> replyMessageClass;
AutoValue_MethodDeclaration(
ExecutableElement method,
String action,
Class> requestMessageClass,
String requestCodec,
List parameters,
String replyCodec,
Class> replyMessageClass) {
if (method == null) {
throw new NullPointerException("Null method");
}
this.method = method;
if (action == null) {
throw new NullPointerException("Null action");
}
this.action = action;
if (requestMessageClass == null) {
throw new NullPointerException("Null requestMessageClass");
}
this.requestMessageClass = requestMessageClass;
if (requestCodec == null) {
throw new NullPointerException("Null requestCodec");
}
this.requestCodec = requestCodec;
if (parameters == null) {
throw new NullPointerException("Null parameters");
}
this.parameters = parameters;
if (replyCodec == null) {
throw new NullPointerException("Null replyCodec");
}
this.replyCodec = replyCodec;
if (replyMessageClass == null) {
throw new NullPointerException("Null replyMessageClass");
}
this.replyMessageClass = replyMessageClass;
}
@Override
ExecutableElement method() {
return method;
}
@Override
String action() {
return action;
}
@Override
Class> requestMessageClass() {
return requestMessageClass;
}
@Override
String requestCodec() {
return requestCodec;
}
@Override
List parameters() {
return parameters;
}
@Override
String replyCodec() {
return replyCodec;
}
@Override
Class> replyMessageClass() {
return replyMessageClass;
}
@Override
public String toString() {
return "MethodDeclaration{"
+ "method=" + method + ", "
+ "action=" + action + ", "
+ "requestMessageClass=" + requestMessageClass + ", "
+ "requestCodec=" + requestCodec + ", "
+ "parameters=" + parameters + ", "
+ "replyCodec=" + replyCodec + ", "
+ "replyMessageClass=" + replyMessageClass
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MethodDeclaration) {
MethodDeclaration that = (MethodDeclaration) o;
return this.method.equals(that.method())
&& this.action.equals(that.action())
&& this.requestMessageClass.equals(that.requestMessageClass())
&& this.requestCodec.equals(that.requestCodec())
&& this.parameters.equals(that.parameters())
&& this.replyCodec.equals(that.replyCodec())
&& this.replyMessageClass.equals(that.replyMessageClass());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= method.hashCode();
h$ *= 1000003;
h$ ^= action.hashCode();
h$ *= 1000003;
h$ ^= requestMessageClass.hashCode();
h$ *= 1000003;
h$ ^= requestCodec.hashCode();
h$ *= 1000003;
h$ ^= parameters.hashCode();
h$ *= 1000003;
h$ ^= replyCodec.hashCode();
h$ *= 1000003;
h$ ^= replyMessageClass.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy