dagger.model.AutoValue_Scope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-spi Show documentation
Show all versions of dagger-spi Show documentation
A fast dependency injector for Android and Java.
package dagger.model;
import com.google.common.base.Equivalence;
import javax.lang.model.element.AnnotationMirror;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_Scope extends Scope {
private final Equivalence.Wrapper wrappedScopeAnnotation;
AutoValue_Scope(
Equivalence.Wrapper wrappedScopeAnnotation) {
if (wrappedScopeAnnotation == null) {
throw new NullPointerException("Null wrappedScopeAnnotation");
}
this.wrappedScopeAnnotation = wrappedScopeAnnotation;
}
@Override
Equivalence.Wrapper wrappedScopeAnnotation() {
return wrappedScopeAnnotation;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Scope) {
Scope that = (Scope) o;
return this.wrappedScopeAnnotation.equals(that.wrappedScopeAnnotation());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= wrappedScopeAnnotation.hashCode();
return h$;
}
}