Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TypeFilteringNotationConverter (0.31 sec)

  1. subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/TypeFilteringNotationConverter.java

    package org.gradle.internal.typeconversion;
    
    import org.gradle.internal.exceptions.DiagnosticsVisitor;
    
    class TypeFilteringNotationConverter<N, S, T> implements NotationConverter<N, T> {
        private final Class<S> type;
        private final NotationConverter<? super S, ? extends T> delegate;
    
        public TypeFilteringNotationConverter(Class<S> type, NotationConverter<? super S, ? extends T> delegate) {
            this.type = type;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  2. subprojects/core-api/src/test/groovy/org/gradle/internal/typeconversion/TypeFilteringNotationConverterTest.groovy

    import spock.lang.Specification
    
    class TypeFilteringNotationConverterTest extends Specification {
        def target = Mock(NotationConverter)
        def result = Mock(NotationConvertResult)
        def converter = new TypeFilteringNotationConverter<Number, BigDecimal, String>(BigDecimal, target)
    
        def "ignores notation when it is not an instance of the target type"() {
            when:
            converter.convert(12L, result)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/NotationParserBuilder.java

         */
        public <S extends N> NotationParserBuilder<N, T> fromType(Class<S> notationType, NotationConverter<? super S, ? extends T> converter) {
            this.notationParsers.add(new TypeFilteringNotationConverter<Object, S, T>(notationType, converter));
            return this;
        }
    
        /**
         * Adds a converter that accepts any CharSequence notation. Can only be used the notation type is a supertype of String.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 27 20:34:59 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  4. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.typeconversion.TypeFilteringNotationConverter> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (TypeFilteringNotationConverter.java:0)
    Class <org.gradle.internal.typeconversion.TypeInfo> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (TypeInfo.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top