Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 233 for CONSTRUCTOR (0.15 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy

        def "creates instance that has default constructor"() {
            when:
            def result = instantiator.newInstance(HasDefaultConstructor)
    
            then:
            result instanceof HasDefaultConstructor
        }
    
        def "injects provided parameters into constructor"() {
            when:
            def result = instantiator.newInstance(HasInjectConstructor, "string", 12)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 04:41:06 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/passes.td

          legalization.
      }];
      let constructor = "CreateAnalyzeVariablesPass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
    }
    
    def DefaultQuantParamsPass : Pass<"tfl-default-quant", "mlir::func::FuncOp"> {
      let summary = "Apply quantization with default quantization parameter";
      let constructor = "CreateDefaultQuantParamsPass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        public final void publicFinalMethod() {}
    
        void notAnnotatedMethod() {}
    
        static Invokable<A, A> constructor() throws Exception {
          Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class);
          Invokable<A, A> invokable = Invokable.from(constructor);
          assertEquals(constructor.getName(), invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/InvokableTest.java

        public final void publicFinalMethod() {}
    
        void notAnnotatedMethod() {}
    
        static Invokable<A, A> constructor() throws Exception {
          Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class);
          Invokable<A, A> invokable = Invokable.from(constructor);
          assertEquals(constructor.getName(), invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java

        public static <T> Binding<T> bindingFromConstructor(Key<T> key, Constructor<T> constructor) {
            constructor.setAccessible(true);
    
            Key<?>[] dependencies = toDependencies(key.getType(), constructor);
    
            Binding<T> binding = Binding.to(
                    key,
                    args -> {
                        try {
                            return constructor.newInstance(args);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

              .reverse();
      private static final Ordering<Constructor<?>> WITH_STRING_PARAM_THEN_WITH_THROWABLE_PARAM =
          ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST.onResultOf(
              constructor -> asList(constructor.getParameterTypes()));
    
      @CheckForNull
      private static <X> X newFromConstructor(Constructor<X> constructor, Throwable cause) {
        Class<?>[] paramTypes = constructor.getParameterTypes();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            factories.add(factory);
          }
        }
        if (!Modifier.isAbstract(type.getRawType().getModifiers())) {
          for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) {
            Invokable<T, T> invokable = type.constructor(constructor);
            if (!invokable.isPrivate() && !invokable.isSynthetic()) {
              factories.add(invokable);
            }
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerialization.java

                try {
                    Constructor<Throwable> constructor;
                    if (message == null && cause == null) {
                        constructor = (Constructor<Throwable>) typeToken.getRawType().getDeclaredConstructor();
                        return constructor.newInstance();
                    } else if (message == null) {
                        constructor = (Constructor<Throwable>) typeToken.getRawType()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       */
      public void testConstructors(Class<?> c, Visibility minimalVisibility) {
        for (Constructor<?> constructor : c.getDeclaredConstructors()) {
          if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) {
            testConstructor(constructor);
          }
        }
      }
    
      /** Runs {@link #testConstructor} on every public constructor in class {@code c}. */
      public void testAllPublicConstructors(Class<?> c) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            factories.add(factory);
          }
        }
        if (!Modifier.isAbstract(type.getRawType().getModifiers())) {
          for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) {
            Invokable<T, T> invokable = type.constructor(constructor);
            if (!invokable.isPrivate() && !invokable.isSynthetic()) {
              factories.add(invokable);
            }
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top