Class ConfigurationCacheSupport
- java.lang.Object
-
- org.graalvm.buildtools.gradle.internal.ConfigurationCacheSupport
-
public class ConfigurationCacheSupport extends java.lang.Object
Helper class to deal with Gradle configuration cache.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ConfigurationCacheSupport.SerializablePredicate<T>
static interface
ConfigurationCacheSupport.SerializableSupplier<T>
static interface
ConfigurationCacheSupport.SerializableTransformer<OUT,IN>
-
Constructor Summary
Constructors Constructor Description ConfigurationCacheSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.function.Predicate<T>
serializablePredicateOf(ConfigurationCacheSupport.SerializablePredicate<T> predicate)
Generates a serializable predicate lambda.static <T> java.util.function.Supplier<T>
serializableSupplierOf(ConfigurationCacheSupport.SerializableSupplier<T> supplier)
Generates a serializable supplier lambda.static <OUT,IN>
org.gradle.api.Transformer<OUT,IN>serializableTransformerOf(ConfigurationCacheSupport.SerializableTransformer<OUT,IN> transformer)
Generates a serializable transformer lambda.
-
-
-
Method Detail
-
serializableSupplierOf
public static <T> java.util.function.Supplier<T> serializableSupplierOf(ConfigurationCacheSupport.SerializableSupplier<T> supplier)
Generates a serializable supplier lambda.- Type Parameters:
T
- the type of the supplier- Parameters:
supplier
- the supplier- Returns:
- a serializable supplier
-
serializablePredicateOf
public static <T> java.util.function.Predicate<T> serializablePredicateOf(ConfigurationCacheSupport.SerializablePredicate<T> predicate)
Generates a serializable predicate lambda.- Type Parameters:
T
- the type of the predicate- Parameters:
predicate
- the predicate- Returns:
- a serializable predicate
-
serializableTransformerOf
public static <OUT,IN> org.gradle.api.Transformer<OUT,IN> serializableTransformerOf(ConfigurationCacheSupport.SerializableTransformer<OUT,IN> transformer)
Generates a serializable transformer lambda.- Type Parameters:
OUT
- the output type of the transformerIN
- the input type of the transformer- Parameters:
transformer
- the transformer- Returns:
- a serializable transformer
-
-