Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for asSubtype (0.82 sec)

  1. subprojects/core-api/src/test/groovy/org/gradle/model/internal/core/ModelTypeTest.groovy

            !anything.isAssignableFrom(extendsTypeVar)
        }
    
        def "asSubtype"() {
            expect:
            ModelType.of(String).asSubtype(ModelType.of(String)) == ModelType.of(String)
            ModelType.of(String).asSubtype(ModelType.of(CharSequence)) == ModelType.of(String)
        }
    
        def "asSubtype failures"() {
            def extendsString = new ModelType<List<? extends String>>() {}.typeVariables[0]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 11 21:42:04 UTC 2018
    - 22.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/RuleDefinitionRuleExtractor.java

                context.add(ruleDefinition, "The first parameter of a method " + getDescription() + " must be a subtype of " + RuleSource.class.getName());
            }
            if (context.hasProblems()) {
                return null;
            }
    
            ModelType<? extends RuleSource> ruleSourceType = ruleType.asSubtype(RULE_SOURCE_MODEL_TYPE);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/main/java/org/gradle/platform/base/internal/registry/AbstractAnnotationDrivenComponentModelRuleExtractor.java

                                                    expectedDependency.getDisplayName()));
                        return;
                    }
                    dependency = reference.getType().asSubtype(expectedDependency);
                }
            }
    
            if (dependency == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelMapModelProjection.java

                    return baseItemModelType;
                }
                if (baseItemModelType.isAssignableFrom(targetItemClass)) {
                    return targetItemClass.asSubtype(baseItemModelType);
                }
                return null;
            }
            if (targetClass.isAssignableFrom(ModelMap.class)) {
                return baseItemModelType;
            }
            return null;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/main/java/org/gradle/platform/base/internal/registry/ComponentTypeModelRuleExtractor.java

            if (info == null) {
                context.add(ruleDefinition, String.format("Type '%s' is not a subtype of '%s'.", builtType.toString(), COMPONENT_SPEC_MODEL_TYPE.toString()));
                return null;
            }
    
            return new ExtractedTypeRule(ruleDefinition, info, builtType.asSubtype(info.baseInterface));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/model/internal/type/ModelType.java

         *
         * @throws ClassCastException if this cannot be cast as the subtype of the given type.
         * @throws IllegalStateException if this is a wildcard.
         * @throws IllegalArgumentException if the given type is a wildcard.
         */
        public <U> ModelType<? extends U> asSubtype(ModelType<U> modelType) {
            if (isWildcard()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

      /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */
      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/arg-multi-data-type-with-subtype.pbtxt

    # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=p,x,y,z,t -tf-input-shapes=10::10:10: -tf-input-data-types="DT_INT32,DT_VARIANT(10:DT_FLOAT),DT_INT8,DT_DOUBLE,DT_RESOURCE(10:DT_INT32)" -tf-output-arrays=p,x,y,z,t -o - | FileCheck %s -check-prefix=CHECK-SUBTYPE
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:11:42 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(arg); // isSubtype() currently incorrectly considers it a subtype.
        }
      }
    
      private static class WildcardSubtypingTests extends SubtypeTester {
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<?> noBounds(List<?> list) {
          return isSubtype(list);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(arg); // isSubtype() currently incorrectly considers it a subtype.
        }
      }
    
      private static class WildcardSubtypingTests extends SubtypeTester {
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<?> noBounds(List<?> list) {
          return isSubtype(list);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
Back to top