public final class DesugaringGraphs
extends java.lang.Object
DesugaringGraph. This is the only way to
create DesugaringGraph as we would like to cache them between runs.| Modifier and Type | Method and Description |
|---|---|
static DesugaringGraph |
forVariant(java.lang.String projectVariant,
java.util.function.Supplier<java.util.Collection<DesugaringData>> ifFull,
java.util.function.Supplier<java.util.Collection<DesugaringData>> ifIncremental)
Get a
DesugaringGraph associated with this key. |
static void |
invalidate(java.lang.String projectVariant)
Removes the desugaring graph for the specified project variant.
|
@NonNull public static DesugaringGraph forVariant(@NonNull java.lang.String projectVariant, @NonNull java.util.function.Supplier<java.util.Collection<DesugaringData>> ifFull, @NonNull java.util.function.Supplier<java.util.Collection<DesugaringData>> ifIncremental)
DesugaringGraph associated with this key. Key
should be unique for the project and variant e.g. :app:debug. If the graph does not exist, it
is created from the supplied data.public static void invalidate(@NonNull
java.lang.String projectVariant)