Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getConstructors (0.09 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

        }
    
        /**
         * コンストラクタを準備します。
         */
        protected void setupConstructorDescs() {
            for (final Constructor<?> constructor : beanClass.getConstructors()) {
                constructorDescs.add(new ConstructorDescImpl(this, constructor));
            }
        }
    
        /**
         * メソッドを準備します。
         */
        protected void setupMethodDescs() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            final ConstructorDesc ctor = beanDesc.getConstructorDesc();
            assertThat(ctor, is(notNullValue()));
            assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor()));
            assertThat(ctor.getParameterTypes().length, is(0));
            assertThat(ctor.isPublic(), is(true));
            final MyBean myBean = ctor.newInstance();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

            (useMonitor ? "com.google.common.util.concurrent.MonitorBased" : "java.util.concurrent.");
        String className = prefix + queueType + "BlockingQueue";
        Constructor<?> constructor = Class.forName(className).getConstructor(int.class);
        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

            }
        }
    
        @Override
        public BeanDesc getBeanDesc() {
            return beanDesc;
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public <T> Constructor<T> getConstructor() {
            return (Constructor<T>) constructor;
        }
    
        @Override
        public Class<?>[] getParameterTypes() {
            return parameterTypes;
        }
    
        @Override
        public boolean isPublic() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        }
    
        /**
         *
         */
        @Test(expected = NoSuchConstructorRuntimeException.class)
        public void testGetConstructor() {
            ClassUtil.getConstructor(ClassUtilTest.class, Integer.class);
        }
    
        /**
         *
         */
        @Test(expected = NoSuchFieldRuntimeException.class)
        public void testGetField() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        Constructor<String> constructor = String.class.getConstructor();
        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor));
      }
    
      public void testConstructor_declaredBySuperclass() throws NoSuchMethodException {
        Constructor<Object> constructor = Object.class.getConstructor();
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        Constructor<String> constructor = String.class.getConstructor();
        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor));
      }
    
      public void testConstructor_declaredBySuperclass() throws NoSuchMethodException {
        Constructor<Object> constructor = Object.class.getConstructor();
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/internal/Finalizer.java

                  + "inherit thread local values.");
          return null;
        }
      }
    
      @CheckForNull
      private static Constructor<Thread> getBigThreadConstructor() {
        try {
          return Thread.class.getConstructor(
              ThreadGroup.class, Runnable.class, String.class, long.class, boolean.class);
        } catch (Throwable t) {
          // Probably pre Java 9. We'll fall back to Thread.inheritableThreadLocals.
          return null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 23 12:54:09 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top