dagger.internal.codegen.binding.AutoValue_OptionalBindingDeclaration Maven / Gradle / Ivy
package dagger.internal.codegen.binding;
import androidx.room.compiler.processing.XElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.errorprone.annotations.concurrent.LazyInit;
import dagger.internal.codegen.model.Key;
import java.lang.Object;
import java.lang.Override;
import java.lang.SuppressWarnings;
import java.util.Optional;
final class AutoValue_OptionalBindingDeclaration extends $AutoValue_OptionalBindingDeclaration {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile int hashCode;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile boolean hashCode$Memoized;
AutoValue_OptionalBindingDeclaration(Optional bindingElement$,
Optional contributingModule$, Key key$) {
super(bindingElement$, contributingModule$, key$);
}
@Override
public int hashCode() {
if (!hashCode$Memoized) {
synchronized (this) {
if (!hashCode$Memoized) {
hashCode = super.hashCode();
hashCode$Memoized = true;
}
}
}
return hashCode;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
return that instanceof AutoValue_OptionalBindingDeclaration && this.hashCode() == that.hashCode() && super.equals(that);
}
}