Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for calculateValue (0.4 sec)

  1. 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)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/OrElseProvider.java

            try (EvaluationContext.ScopeContext ignored = openScope()) {
                Value<? extends T> leftValue = left.calculateValue(consumer);
                if (!leftValue.isMissing()) {
                    return leftValue;
                }
                Value<? extends T> rightValue = right.calculateValue(consumer);
                if (!rightValue.isMissing()) {
                    return rightValue;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:42 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/FlatMapProvider.java

            try (EvaluationContext.ScopeContext context = openScope()) {
                Value<? extends T> value = provider.calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
                return doMapValue(context, value).calculateValue(consumer);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/BiProvider.java

            try (EvaluationContext.ScopeContext ignored = openScope()) {
                Value<? extends A> leftValue = left.calculateValue(consumer);
                if (leftValue.isMissing()) {
                    return leftValue.asType();
                }
                Value<? extends B> rightValue = right.calculateValue(consumer);
                if (rightValue.isMissing()) {
                    return rightValue.asType();
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MapSupplier.java

     *
     * @param <K> the type of map entry key
     * @param <V> the type of map entry value
     */
    interface MapSupplier<K, V> extends ValueSupplier {
        Value<? extends Map<K, V>> calculateValue(ValueConsumer consumer);
    
        Value<? extends Set<K>> calculateKeys(ValueConsumer consumer);
    
        MapSupplier<K, V> plus(MapCollector<K, V> collector);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 12:22:39 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MapCollectors.java

            }
    
            @Override
            public Value<Void> collectEntries(ValueConsumer consumer, MapEntryCollector<K, V> collector, Map<K, V> dest) {
                Value<? extends V> value = providerOfValue.calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
                collector.add(key, value.getWithoutSideEffect(), dest);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 12:22:39 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/CollectionSupplier.java

     * @param <C> type of collection
     */
    interface CollectionSupplier<T, C extends Collection<? extends T>> extends ValueSupplier {
        /**
         * Realizes and returns the (collection) value.
         */
        Value<? extends C> calculateValue(ValueConsumer consumer);
    
        /**
         * Combines the current collection supplier with the given {@link Collector} (also a {@link ValueSupplier value supplier}), producing a new
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 05:02:13 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

            return value.calculateValue(consumer);
        }
    
        @Override
        protected CollectionSupplier<T, C> finalValue(EvaluationContext.ScopeContext context, CollectionSupplier<T, C> value, ValueConsumer consumer) {
            Value<? extends C> result = value.calculateValue(consumer);
            if (!result.isMissing()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

            return value.calculateValue(consumer);
        }
    
        @Override
        protected MapSupplier<K, V> finalValue(EvaluationContext.ScopeContext context, MapSupplier<K, V> value, ValueConsumer consumer) {
            Value<? extends Map<K, V>> result = value.calculateValue(consumer);
            if (!result.isMissing()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top