Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getGenericReturnType (0.06 sec)

  1. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(Long.class)));
    
            method = Hoge.class.getMethod("array");
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(String[].class)));
    
            method = Hoge.class.getMethod("list");
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(List.class)));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Invokable.java

            throws InvocationTargetException, IllegalAccessException {
          return method.invoke(receiver, args);
        }
    
        @Override
        Type getGenericReturnType() {
          return method.getGenericReturnType();
        }
    
        @Override
        Type[] getGenericParameterTypes() {
          return method.getGenericParameterTypes();
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/MethodUtil.java

         */
        public static Class<?> getElementTypeOfCollectionFromReturnType(final Method method) {
            assertArgumentNotNull("method", method);
    
            final Type returnType = method.getGenericReturnType();
            return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(returnType));
        }
    
        /**
         * Returns the key type of the parameterized map declared as the method's argument type.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

      }
    
      private @Nullable Method method = null;
    
      /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */
      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 25 23:29:58 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/SubtypeTester.java

      }
    
      private @Nullable Method method = null;
    
      /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */
      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 25 23:29:58 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileToRawModelMergerTest.java

                        try {
                            Type returnType = m.getParameterTypes()[0]
                                    .getMethod("get" + entity)
                                    .getGenericReturnType();
                            if (returnType instanceof ParameterizedType parameterizedType) {
                                return !parameterizedType.getActualTypeArguments()[0].equals(String.class);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

            Parameter param = params.get(i);
            if (!isNullable(param)) {
              checkNotNull(args[i]);
            }
          }
          return dummyReturnValue(interfaceType.resolveType(method.getGenericReturnType()));
        }
    
        @Override
        public int hashCode() {
          return identity().hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java

            assertArgumentNotNull("method", method);
            assertArgumentNotNull("map", map);
    
            return createParameterizedClassDesc(method.getGenericReturnType(), map);
        }
    
        /**
         * Creates and returns a {@link ParameterizedClassDesc} that represents the {@link Type}.
         *
         * @param type
         *            The type.
         * @param map
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * @return the generic type class, or null if not found
         */
        public static Type getGenericParameter(final java.lang.reflect.Method method, final int index) {
            return getGenericParameter(method.getGenericReturnType(), index);
        }
    
        /**
         * Returns the generic type of the specified method for the given index, or the default class if not found.
         *
         * @param method the method to analyze
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public void testResolveType() throws Exception {
        Method getFromList = List.class.getMethod("get", int.class);
        TypeToken<?> returnType =
            new TypeToken<List<String>>() {}.resolveType(getFromList.getGenericReturnType());
        assertEquals(String.class, returnType.getType());
      }
    
      public <F extends Enum<F> & Function<String, Integer> & Iterable<Long>>
          void testResolveType_fromTypeVariable() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top