Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for getParameterTypes (0.1 sec)

  1. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          if (method.getName().equals("equals")
              && method.getParameterTypes().length == 1
              && method.getParameterTypes()[0] == Object.class) {
            continue;
          }
          if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) {
            continue;
          }
          if (method.getName().equals("toString") && method.getParameterTypes().length == 0) {
            continue;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          if (method.getName().equals("equals")
              && method.getParameterTypes().length == 1
              && method.getParameterTypes()[0] == Object.class) {
            continue;
          }
          if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) {
            continue;
          }
          if (method.getName().equals("toString") && method.getParameterTypes().length == 0) {
            continue;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

            assertThat(foo.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(foo.getMethod(), is(MyBean.class.getMethod("foo")));
            assertThat(foo.getMethodName(), is("foo"));
            assertThat(foo.getParameterTypes().length, is(0));
            assertThat(foo.isPublic(), is(true));
            assertThat(foo.isStatic(), is(not(true)));
            assertThat(foo.isFinal(), is(not(true)));
            assertThat(foo.isAbstract(), is(not(true)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            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();
            assertThat(myBean, is(notNullValue()));
            assertThat(myBean.s, is(nullValue()));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

            assertArgumentNotNull("constructor", constructor);
    
            this.beanDesc = beanDesc;
            this.constructor = constructor;
            parameterTypes = constructor.getParameterTypes();
            parameterizedClassDescs = new ParameterizedClassDesc[parameterTypes.length];
            final Map<TypeVariable<?>, Type> typeVariables = beanDesc.getTypeVariables();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            assertArgumentNotNull("method", method);
    
            this.beanDesc = beanDesc;
            this.method = method;
            methodName = method.getName();
            parameterTypes = method.getParameterTypes();
            returnType = method.getReturnType();
            parameterizedClassDescs = new ParameterizedClassDesc[parameterTypes.length];
            for (int i = 0; i < parameterTypes.length; ++i) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top