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.SerializableBiFunction<T,U,R>
static interface
ConfigurationCacheSupport.SerializableCollector<T,A,R>
static interface
ConfigurationCacheSupport.SerializableFunction<F,T>
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,U,R>
java.util.function.BiFunction<T,U,R>serializableBiFunctionOf(ConfigurationCacheSupport.SerializableBiFunction<T,U,R> bifunction)
Generates a serializable bifunction lambda.static <T,A,R>
java.util.stream.Collector<T,A,R>serializableCollectorOf(ConfigurationCacheSupport.SerializableCollector<T,A,R> collector)
static <F,T>
java.util.function.Function<F,T>serializableFunctionOf(ConfigurationCacheSupport.SerializableFunction<F,T> function)
Generates a serializable function lambda.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
-
serializableFunctionOf
public static <F,T> java.util.function.Function<F,T> serializableFunctionOf(ConfigurationCacheSupport.SerializableFunction<F,T> function)
Generates a serializable function lambda.- Type Parameters:
F
- the type of the parameterT
- the type of the result- Parameters:
function
- the bifunction- Returns:
- a serializable function
-
serializableBiFunctionOf
public static <T,U,R> java.util.function.BiFunction<T,U,R> serializableBiFunctionOf(ConfigurationCacheSupport.SerializableBiFunction<T,U,R> bifunction)
Generates a serializable bifunction lambda.- Type Parameters:
T
- the type of the first parameterU
- the type of the second parameterR
- the type of the result- Parameters:
bifunction
- the bifunction- Returns:
- a serializable bifunction
-
serializableCollectorOf
public static <T,A,R> java.util.stream.Collector<T,A,R> serializableCollectorOf(ConfigurationCacheSupport.SerializableCollector<T,A,R> collector)
-
-