- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for ValueSupplier (0.28 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java
* <p> * All providers implement this interface, but this interface may be implemented whenever * lazy evaluation is required. * </p> */ public interface ValueSupplier { /** * Visits the producer of the value for this supplier. This might be one or more tasks, some external location, nothing (for a fixed value) or might unknown. */ ValueProducer getProducer();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 20:31:29 UTC 2024 - 27.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/OrElseValueProducer.java
import java.util.Objects; class OrElseValueProducer implements ValueSupplier.ValueProducer { private final EvaluationContext.EvaluationOwner owner; private final ProviderInternal<?> left; @Nullable private final ProviderInternal<?> right; private final ValueSupplier.ValueProducer leftProducer; private final ValueSupplier.ValueProducer rightProducer;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 16:54:51 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/DefaultFlowProviders.kt
override fun calculateOwnValue(consumer: ValueSupplier.ValueConsumer): ValueSupplier.Value<out BuildWorkResult> { require(result != null) { "Cannot access the value of '${BuildWorkResult::class.simpleName}' before it becomes available!" } return ValueSupplier.Value.ofNullable(result) } override fun calculateExecutionTimeValue(): ValueSupplier.ExecutionTimeValue<out BuildWorkResult> =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java
} } return finalizeOnNextGet || consumer == ValueSupplier.ValueConsumer.DisallowUnsafeRead; } @Override public ValueSupplier.ValueConsumer forUpstream(ValueSupplier.ValueConsumer consumer) { if (disallowUnsafeRead) { return ValueSupplier.ValueConsumer.DisallowUnsafeRead; } else { return consumer;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 13.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy
when: def result = toList(container) then: result == iterationOrder(b, a, d, c) and: 1 * provider1.calculateValue(_) >> ValueSupplier.Value.of(a) 1 * provider2.calculateValue(_) >> ValueSupplier.Value.of(d) 0 * _ } def "provider for iterable of elements is queried when elements iterated and insertion order is retained"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 52.4K bytes - Viewed (0) -
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) -
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/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)