- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 39 for ValueSupplier (0.21 sec)
-
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt
return decodeValue().toProvider() } suspend fun ReadContext.decodeValue(): ValueSupplier.ExecutionTimeValue<*> = when (readByte()) { 1.toByte() -> ValueSupplier.ExecutionTimeValue.missing<Any>() 2.toByte() -> ValueSupplier.ExecutionTimeValue.ofNullable(read()) // nullable because serialization may replace value with null, e.g. when using provider of Task
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 17.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 13:15:09 UTC 2024 - 14.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/SortedSetElementSourceTest.groovy
import org.gradle.api.internal.provider.ValueSupplier class SortedSetElementSourceTest extends ElementSourceSpec { def provider1 = Mock(ProviderInternal) def provider2 = Mock(ProviderInternal) def provider3 = Mock(ProviderInternal) ElementSource source = new SortedSetElementSource<CharSequence>() def setup() { _ * provider1.calculateValue(_) >> ValueSupplier.Value.of("provider1")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:14 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/CollectionSupplier.java
import java.util.Collection; /** * A {@link ValueSupplier value supplier} that supplies collection values. Instances of * this type are used as value suppliers for {@link AbstractCollectionProperty}. * * @param <T> the type of elements * @param <C> type of collection */ interface CollectionSupplier<T, C extends Collection<? extends T>> extends ValueSupplier { /** * Realizes and returns the (collection) value.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 21 05:02:13 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy
@Override AbstractProperty<T, ? extends ValueSupplier> providerWithValue(T value) { return propertyWithNoValue().value(value) } @Override AbstractProperty<T, ? extends ValueSupplier> providerWithNoValue() { return propertyWithNoValue() } @Override abstract AbstractProperty<T, ? extends ValueSupplier> propertyWithNoValue()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 12:47:05 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/ProviderBackedFileCollection.java
import org.gradle.api.internal.file.FileCollectionInternal; import org.gradle.api.internal.provider.ProviderInternal; import org.gradle.api.internal.provider.ProviderResolutionStrategy; import org.gradle.api.internal.provider.ValueSupplier; import org.gradle.api.internal.tasks.TaskDependencyFactory; import org.gradle.api.internal.tasks.TaskDependencyResolveContext; import org.gradle.api.tasks.util.PatternSet; import org.gradle.internal.Factory;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(['k1': 'v1']) 1 * putProvider.calculateValue(_) >> ValueSupplier.Value.of('v2') 1 * putAllProvider.calculateValue(_) >> ValueSupplier.Value.of(['k3': 'v3']) 0 * _ when: property.getOrNull() then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(['k1': 'v1'])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/normalization/internal/DefaultRuntimeClasspathNormalization.java
private final Supplier<T> valueSupplier; private final ImmutableSet.Builder<String> builder; public EvaluatableFilter(Function<ImmutableSet<String>, T> initializer, T emptyValue) { this.builder = ImmutableSet.builder(); // if there are configured ignores, use the initializer to create the value, otherwise return emptyValue this.valueSupplier = () -> Optional.of(builder.build())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 01 07:34:45 UTC 2022 - 9.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(["1"]) 1 * addProvider.calculateValue(_) >> ValueSupplier.Value.of("2") 1 * addAllProvider.calculateValue(_) >> ValueSupplier.Value.of(["3"]) 0 * _ when: property.getOrNull() then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(["1"])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Providers.java
import javax.annotation.Nullable; import java.io.Serializable; import java.util.concurrent.Callable; public class Providers { private static final NoValueProvider<Object> NULL_PROVIDER = new NoValueProvider<>(ValueSupplier.Value.MISSING); public static final Provider<Boolean> TRUE = of(true); public static final Provider<Boolean> FALSE = of(false);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 20:21:32 UTC 2023 - 7.1K bytes - Viewed (0)