Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getWithoutSideEffect (0.24 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

            @Nullable
            static <T, A> SideEffect<T> fixedFrom(Value<A> value) {
                if (value.isMissing()) {
                    return null;
                }
    
                return fixed(value.getWithoutSideEffect(), value.getSideEffect());
            }
    
            /**
             * Extracts the side effect from the {@code value} if any, and fixes it on that value.
             * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

                Value<? extends T> value = provider.calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
    
                collector.add(value.getWithoutSideEffect(), collection);
                return Value.present().withSideEffect(SideEffect.fixedFrom(value));
            }
    
            @Override
            public boolean isProvidedBy(Provider<?> provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

            withActualValue(it -> it.addAll(provider));
        }
    
        @Override
        public int size() {
            return calculateOwnPresentValue().getWithoutSideEffect().size();
        }
    
        /**
         * Adds the given supplier as the new root supplier for this collection.
         *
         * @param collector the collector to add
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

            Value<? extends Map<K, V>> result = value.calculateValue(consumer);
            if (!result.isMissing()) {
                return new FixedSupplier<>(result.getWithoutSideEffect(), uncheckedCast(result.getSideEffect()));
            } else if (result.getPathToOrigin().isEmpty()) {
                return noValueSupplier();
            } else {
                return new NoValueSupplier(result);
            }
    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