Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getGenericReturnType (0.83 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: Fri Sep 05 20:58:11 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top