com.bekioui.maven.plugin.client.model.AutoValue_ContextResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-maven-plugin Show documentation
Show all versions of client-maven-plugin Show documentation
Generate java client of RESTful API.
package com.bekioui.maven.plugin.client.model;
import com.squareup.javapoet.TypeName;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ContextResource extends ContextResource {
private final TypeName typeName;
private final String className;
private final Resource resource;
AutoValue_ContextResource(
TypeName typeName,
String className,
Resource resource) {
if (typeName == null) {
throw new NullPointerException("Null typeName");
}
this.typeName = typeName;
if (className == null) {
throw new NullPointerException("Null className");
}
this.className = className;
if (resource == null) {
throw new NullPointerException("Null resource");
}
this.resource = resource;
}
@Override
public TypeName typeName() {
return typeName;
}
@Override
public String className() {
return className;
}
@Override
public Resource resource() {
return resource;
}
@Override
public String toString() {
return "ContextResource{"
+ "typeName=" + typeName + ", "
+ "className=" + className + ", "
+ "resource=" + resource
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ContextResource) {
ContextResource that = (ContextResource) o;
return (this.typeName.equals(that.typeName()))
&& (this.className.equals(that.className()))
&& (this.resource.equals(that.resource()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= typeName.hashCode();
h *= 1000003;
h ^= className.hashCode();
h *= 1000003;
h ^= resource.hashCode();
return h;
}
}