Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getParameterTypes (0.13 sec)

  1. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

        @Override
        public ConstructorDesc getConstructorDesc(final Class<?>... paramTypes) {
            for (final ConstructorDesc constructorDesc : constructorDescs) {
                if (Arrays.equals(paramTypes, constructorDesc.getParameterTypes())) {
                    return constructorDesc;
                }
            }
            throw new ConstructorNotFoundRuntimeException(beanClass, paramTypes);
        }
    
        @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

            Object[] params1 = new Object[method.getParameterTypes().length];
            Object[] params2 = new Object[method.getParameterTypes().length];
            for (int i = 0; i < params1.length; i++) {
              if (method.getParameterTypes()[i] == int.class) {
                params1[i] = random.nextInt();
                params2[i] = random.nextInt();
              } else if (method.getParameterTypes()[i] == long.class) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            setUpParameterizedClassDesc();
        }
    
        private void setupStringConstructor() {
            for (final Constructor<?> con : propertyType.getConstructors()) {
                if (con.getParameterTypes().length == 1 && con.getParameterTypes()[0].equals(String.class)) {
                    stringConstructor = con;
                    break;
                }
            }
        }
    
        private void setupValueOfMethod() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

                if (nameComparison != 0) {
                  return nameComparison;
                } else {
                  return Integer.compare(m1.getParameterTypes().length, m2.getParameterTypes().length);
                }
              }
            });
      }
    
      /** Validates that the given method's signature meets all of our assumptions. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          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();
        Object[] params = new Object[paramTypes.length];
        for (int i = 0; i < paramTypes.length; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * the concatenation of the name and the
         * types of the method parameters.
         */
        private String makeMethodKey(Method method) {
            Class<?>[] parameterTypes = method.getParameterTypes();
    
            StringBuilder methodKey = new StringBuilder(method.getName());
    
            for (Class<?> parameterType : parameterTypes) {
                // If the argument type is primitive then we want
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

                if (nameComparison != 0) {
                  return nameComparison;
                } else {
                  return Integer.compare(m1.getParameterTypes().length, m2.getParameterTypes().length);
                }
              }
            });
      }
    
      /** Validates that the given method's signature meets all of our assumptions. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

        Multimap<Class<?>, Subscriber> methodsInListener = HashMultimap.create();
        Class<?> clazz = listener.getClass();
        for (Method method : getAnnotatedMethods(clazz)) {
          Class<?>[] parameterTypes = method.getParameterTypes();
          Class<?> eventType = parameterTypes[0];
          methodsInListener.put(eventType, Subscriber.create(bus, listener, method));
        }
        return methodsInListener;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

            for (Method app : applicables) {
                Class<?>[] appArgs = app.getParameterTypes();
                boolean lessSpecific = false;
    
                for (Iterator<Method> maximal = maximals.iterator(); !lessSpecific && maximal.hasNext(); ) {
                    Method max = maximal.next();
    
                    switch (moreSpecific(appArgs, max.getParameterTypes())) {
                        case MORE_SPECIFIC:
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/MethodUtil.java

            assertArgumentNotNull("method", method);
    
            return method != null && method.getName().equals("equals") && method.getReturnType() == boolean.class
                    && method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == Object.class;
        }
    
        /**
         * {@literal hashCode()}メソッドかどうか返します。
         *
         * @param method
         *            メソッド。{@literal null}であってはいけません
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top