[Ahead-of-time Subcomponents] Add support for multibindings. Multibinding
methods are generated for every subcomponent implementation in which there are
new contributions available, and all implementations use their superclass
implementations when available.
RELNOTES=n/a
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=212015189
diff --git a/java/dagger/internal/codegen/ModifiableBindingMethods.java b/java/dagger/internal/codegen/ModifiableBindingMethods.java
index 6e7ddc6..d83a5fc 100644
--- a/java/dagger/internal/codegen/ModifiableBindingMethods.java
+++ b/java/dagger/internal/codegen/ModifiableBindingMethods.java
@@ -108,5 +108,10 @@
abstract MethodSpec methodSpec();
abstract boolean finalized();
+
+ /** Whether a {@link ModifiableBindingMethod} is for the same binding request. */
+ boolean fulfillsSameRequestAs(ModifiableBindingMethod other) {
+ return request().equals(other.request());
+ }
}
}