dagger.internal.codegen.binding.AutoValue_BindingRequest 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.
package dagger.internal.codegen.binding;
import dagger.spi.model.Key;
import dagger.spi.model.RequestKind;
import java.util.Optional;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BindingRequest extends BindingRequest {
private final Key key;
private final RequestKind requestKind;
private final Optional frameworkType;
AutoValue_BindingRequest(
Key key,
RequestKind requestKind,
Optional frameworkType) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (requestKind == null) {
throw new NullPointerException("Null requestKind");
}
this.requestKind = requestKind;
if (frameworkType == null) {
throw new NullPointerException("Null frameworkType");
}
this.frameworkType = frameworkType;
}
@Override
public Key key() {
return key;
}
@Override
public RequestKind requestKind() {
return requestKind;
}
@Override
public Optional frameworkType() {
return frameworkType;
}
@Override
public String toString() {
return "BindingRequest{"
+ "key=" + key + ", "
+ "requestKind=" + requestKind + ", "
+ "frameworkType=" + frameworkType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BindingRequest) {
BindingRequest that = (BindingRequest) o;
return (this.key.equals(that.key()))
&& (this.requestKind.equals(that.requestKind()))
&& (this.frameworkType.equals(that.frameworkType()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= requestKind.hashCode();
h$ *= 1000003;
h$ ^= frameworkType.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy