Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getConstructor (0.63 sec)

  1. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *             If a matching constructor is not found
         * @see Class#getConstructor(Class...)
         */
        public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes)
                throws NoSuchConstructorRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.getConstructor(argTypes);
            } catch (final NoSuchMethodException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          return arbitraryConstantInstanceOrNull(type);
        }
        Constructor<T> constructor;
        try {
          constructor = type.getConstructor();
        } catch (NoSuchMethodException e) {
          return arbitraryConstantInstanceOrNull(type);
        }
        constructor.setAccessible(true); // accessibility check is too slow
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          return arbitraryConstantInstanceOrNull(type);
        }
        Constructor<T> constructor;
        try {
          constructor = type.getConstructor();
        } catch (NoSuchMethodException e) {
          return arbitraryConstantInstanceOrNull(type);
        }
        constructor.setAccessible(true); // accessibility check is too slow
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        }
      }
    
      private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) {
        // getConstructors() guarantees this as long as we don't modify the array.
        @SuppressWarnings({"unchecked", "rawtypes"})
        List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors());
        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        }
      }
    
      private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) {
        // getConstructors() guarantees this as long as we don't modify the array.
        @SuppressWarnings({"unchecked", "rawtypes"})
        List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors());
        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            setupStringConstructor();
            setupValueOfMethod();
            setUpParameterizedClassDesc();
        }
    
        private void setupStringConstructor() {
            for (final Constructor<?> con : propertyType.getConstructors()) {
                if (con.getParameterTypes().length == 1 && con.getParameterTypes()[0].equals(String.class)) {
                    stringConstructor = con;
                    break;
                }
            }
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

        }
    
        /**
         * Prepares the constructors.
         */
        protected void setupConstructorDescs() {
            for (final Constructor<?> constructor : beanClass.getConstructors()) {
                constructorDescs.add(new ConstructorDescImpl(this, constructor));
            }
        }
    
        /**
         * Prepares the methods.
         */
        protected void setupMethodDescs() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
Back to top