- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for setToConventionIfUnset (0.43 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java
/** * Marks this value as being explicitly set with * the current value assigned to the convention, * unless it is already an explicit value. */ public abstract S setToConventionIfUnset(S value); private static class NonFinalizedValue<S> extends ValueState<S> { private final PropertyHost host; private final Function<S, S> copier; private boolean explicitValue;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 13.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java
* or if an explicit value has already been set, it has no effect. */ protected SupportsConvention setToConventionIfUnset() { assertCanMutate(); if (!isDefaultConvention()) { this.value = state.setToConventionIfUnset(value); } return this; } protected abstract S getDefaultValue();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:54 UTC 2024 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
* or if an explicit value has already been set, it has no effect. */ protected ConfigurableFileCollection setToConventionIfUnset() { assertMutable(); value = valueState.setToConventionIfUnset(value); return this; } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 16:06:55 UTC 2024 - 30.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
when: property.setToConventionIfUnset() then: assertValueIs(['4']) when: property.unset() property.setToConventionIfUnset() then: assertValueIs(['1']) property.explicit } def "property is empty when setToConventionIfUnset if convention not set yet"() { when:
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/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
when: property.setToConventionIfUnset() then: assertValueIs(['k1': '4']) when: property.unset() property.setToConventionIfUnset() then: assertValueIs(['k0': '1']) property.explicit } def "property is empty when setToConventionIfUnset if convention not set yet"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 18 17:09:50 UTC 2024 - 53K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java
protected Configurer getConfigurer(boolean ignoreAbsent) { return new Configurer(ignoreAbsent); } protected void withActualValue(Action<Configurer> action) { setToConventionIfUnset(); action.execute(getConfigurer(true)); } @Override protected boolean isDefaultConvention() { return isNoValueSupplier(getConventionSupplier()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 29.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java
} private Configurer getConfigurer(boolean ignoreAbsent) { return new Configurer(ignoreAbsent); } protected void withActualValue(Action<Configurer> action) { setToConventionIfUnset(); action.execute(getConfigurer(true)); } private boolean isNoValueSupplier(MapSupplier<K, V> valueSupplier) { return valueSupplier instanceof DefaultMapProperty.NoValueSupplier;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 32.6K bytes - Viewed (0)