Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setSupplier (0.26 sec)

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

            }
        }
    
        @Override
        public void set(@Nullable T value) {
            if (value == null) {
                discardValue();
            } else {
                setSupplier(Providers.fixedValue(getValidationDisplayName(), value, type, sanitizer));
            }
        }
    
        @Override
        public Property<T> value(@Nullable T value) {
            set(value);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

            if (value.isMissing()) {
                setSupplier(noValueSupplier());
            } else if (value.hasFixedValue()) {
                setSupplier(new FixedSupplier<>(value.getFixedValue(), Cast.uncheckedCast(value.getSideEffect())));
            } else {
                CollectingProvider<T, C> asCollectingProvider = Cast.uncheckedNonnullCast(value.getChangingValue());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

            if (value.isMissing()) {
                setSupplier(noValueSupplier());
            } else if (value.hasFixedValue()) {
                setSupplier(new FixedSupplier<>(uncheckedNonnullCast(value.getFixedValue()), uncheckedCast(value.getSideEffect())));
            } else {
                CollectingProvider<K, V> asCollectingProvider = uncheckedNonnullCast(value.getChangingValue());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

        public void disallowUnsafeRead() {
            state.disallowUnsafeRead();
        }
    
        protected abstract S finalValue(EvaluationContext.ScopeContext context, S value, ValueConsumer consumer);
    
        protected void setSupplier(S supplier) {
            assertCanMutate();
            this.value = state.explicitValue(supplier);
        }
    
        protected void setConvention(S convention) {
            assertCanMutate();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/model/CalculatedValueContainer.java

         *
         * Note: some other thread may currently be calculating the value
         */
        public S getSupplier() throws IllegalStateException {
            CalculationState<T, S> calculationState = this.calculationState;
            if (calculationState == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top