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.Collection<DesugaringData> fullDesugaringData)
Create a
DesugaringGraph associated with this key. |
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.
|
static DesugaringGraph |
updateVariant(java.lang.String projectVariant,
java.util.function.Supplier<java.util.Collection<DesugaringData>> incrementalDesugaringData)
Update a
DesugaringGraph associated with this key if a
cached version exists. |
@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.@NonNull public static DesugaringGraph forVariant(@NonNull java.lang.String projectVariant, @NonNull java.util.Collection<DesugaringData> fullDesugaringData)
DesugaringGraph associated with this key. Key
should be unique for the project and variant e.g. :app:debug. The graph is created fully from
the supplied data.@NonNull public static DesugaringGraph updateVariant(@NonNull java.lang.String projectVariant, @NonNull java.util.function.Supplier<java.util.Collection<DesugaringData>> incrementalDesugaringData)
DesugaringGraph associated with this key if a
cached version exists. Key should be unique for the project and variant e.g. :app:debug. Does
nothing if no cached version exists for the variant.public static void invalidate(@NonNull
java.lang.String projectVariant)