Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidatingValueCollector (1 sec)

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

    import com.google.common.collect.ImmutableCollection;
    
    import javax.annotation.Nullable;
    
    class ValidatingValueCollector<T> implements ValueCollector<T> {
        private final Class<?> collectionType;
        private final Class<T> elementType;
        private final ValueSanitizer<T> sanitizer;
    
        ValidatingValueCollector(Class<?> collectionType, Class<T> elementType, ValueSanitizer<T> sanitizer) {
            this.collectionType = collectionType;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

            super(host);
            this.collectionType = collectionType;
            this.elementType = elementType;
            this.collectionFactory = collectionFactory;
            valueCollector = new ValidatingValueCollector<>(collectionType, elementType, ValueSanitizers.forType(elementType));
            init();
        }
    
        private void init() {
            defaultValue = emptySupplier();
            init(defaultValue, noValueSupplier());
    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

        public DefaultMapProperty(PropertyHost propertyHost, Class<K> keyType, Class<V> valueType) {
            super(propertyHost);
            this.keyType = keyType;
            this.valueType = valueType;
            keyCollector = new ValidatingValueCollector<>(Set.class, keyType, ValueSanitizers.forType(keyType));
            entryCollector = new ValidatingMapEntryCollector<>(keyType, valueType, ValueSanitizers.forType(keyType), ValueSanitizers.forType(valueType));
            init();
    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