dagger.internal.codegen.binding.$AutoValue_AssistedInjectionAnnotations_AssistedFactoryMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
The newest version!
package dagger.internal.codegen.binding;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XMethodType;
import androidx.room.compiler.processing.XType;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableList;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_AssistedInjectionAnnotations_AssistedFactoryMetadata extends AssistedInjectionAnnotations.AssistedFactoryMetadata {
private final XTypeElement factory;
private final XType factoryType;
private final XMethodElement factoryMethod;
private final XMethodType factoryMethodType;
private final XTypeElement assistedInjectElement;
private final XType assistedInjectType;
private final ImmutableList assistedInjectAssistedParameters;
private final ImmutableList assistedFactoryAssistedParameters;
$AutoValue_AssistedInjectionAnnotations_AssistedFactoryMetadata(
XTypeElement factory,
XType factoryType,
XMethodElement factoryMethod,
XMethodType factoryMethodType,
XTypeElement assistedInjectElement,
XType assistedInjectType,
ImmutableList assistedInjectAssistedParameters,
ImmutableList assistedFactoryAssistedParameters) {
if (factory == null) {
throw new NullPointerException("Null factory");
}
this.factory = factory;
if (factoryType == null) {
throw new NullPointerException("Null factoryType");
}
this.factoryType = factoryType;
if (factoryMethod == null) {
throw new NullPointerException("Null factoryMethod");
}
this.factoryMethod = factoryMethod;
if (factoryMethodType == null) {
throw new NullPointerException("Null factoryMethodType");
}
this.factoryMethodType = factoryMethodType;
if (assistedInjectElement == null) {
throw new NullPointerException("Null assistedInjectElement");
}
this.assistedInjectElement = assistedInjectElement;
if (assistedInjectType == null) {
throw new NullPointerException("Null assistedInjectType");
}
this.assistedInjectType = assistedInjectType;
if (assistedInjectAssistedParameters == null) {
throw new NullPointerException("Null assistedInjectAssistedParameters");
}
this.assistedInjectAssistedParameters = assistedInjectAssistedParameters;
if (assistedFactoryAssistedParameters == null) {
throw new NullPointerException("Null assistedFactoryAssistedParameters");
}
this.assistedFactoryAssistedParameters = assistedFactoryAssistedParameters;
}
@Override
public XTypeElement factory() {
return factory;
}
@Override
public XType factoryType() {
return factoryType;
}
@Override
public XMethodElement factoryMethod() {
return factoryMethod;
}
@Override
public XMethodType factoryMethodType() {
return factoryMethodType;
}
@Override
public XTypeElement assistedInjectElement() {
return assistedInjectElement;
}
@Override
public XType assistedInjectType() {
return assistedInjectType;
}
@Override
public ImmutableList assistedInjectAssistedParameters() {
return assistedInjectAssistedParameters;
}
@Override
public ImmutableList assistedFactoryAssistedParameters() {
return assistedFactoryAssistedParameters;
}
@Override
public String toString() {
return "AssistedFactoryMetadata{"
+ "factory=" + factory + ", "
+ "factoryType=" + factoryType + ", "
+ "factoryMethod=" + factoryMethod + ", "
+ "factoryMethodType=" + factoryMethodType + ", "
+ "assistedInjectElement=" + assistedInjectElement + ", "
+ "assistedInjectType=" + assistedInjectType + ", "
+ "assistedInjectAssistedParameters=" + assistedInjectAssistedParameters + ", "
+ "assistedFactoryAssistedParameters=" + assistedFactoryAssistedParameters
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AssistedInjectionAnnotations.AssistedFactoryMetadata) {
AssistedInjectionAnnotations.AssistedFactoryMetadata that = (AssistedInjectionAnnotations.AssistedFactoryMetadata) o;
return this.factory.equals(that.factory())
&& this.factoryType.equals(that.factoryType())
&& this.factoryMethod.equals(that.factoryMethod())
&& this.factoryMethodType.equals(that.factoryMethodType())
&& this.assistedInjectElement.equals(that.assistedInjectElement())
&& this.assistedInjectType.equals(that.assistedInjectType())
&& this.assistedInjectAssistedParameters.equals(that.assistedInjectAssistedParameters())
&& this.assistedFactoryAssistedParameters.equals(that.assistedFactoryAssistedParameters());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= factory.hashCode();
h$ *= 1000003;
h$ ^= factoryType.hashCode();
h$ *= 1000003;
h$ ^= factoryMethod.hashCode();
h$ *= 1000003;
h$ ^= factoryMethodType.hashCode();
h$ *= 1000003;
h$ ^= assistedInjectElement.hashCode();
h$ *= 1000003;
h$ ^= assistedInjectType.hashCode();
h$ *= 1000003;
h$ ^= assistedInjectAssistedParameters.hashCode();
h$ *= 1000003;
h$ ^= assistedFactoryAssistedParameters.hashCode();
return h$;
}
}