Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for getGenericReturnType (0.45 seconds)

  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)));
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 11.5K bytes
    - Click Count (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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  3. 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);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          Map<String, Integer> returningMap() {
            throw new AssertionError();
          }
        }
        Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType();
        Type keyType = Map.class.getTypeParameters()[0];
        Type valueType = Map.class.getTypeParameters()[1];
    
        // context is parameterized type
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          Map<String, Integer> returningMap() {
            throw new AssertionError();
          }
        }
        Type context = Context.class.getDeclaredMethod("returningMap").getGenericReturnType();
        Type keyType = Map.class.getTypeParameters()[0];
        Type valueType = Map.class.getTypeParameters()[1];
    
        // context is parameterized type
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/reflect/TypeToken.java

            "%s not declared by %s",
            method,
            this);
        return new Invokable.MethodInvokable<T>(method) {
          @Override
          Type getGenericReturnType() {
            return getCovariantTypeResolver().resolveType(super.getGenericReturnType());
          }
    
          @Override
          Type[] getGenericParameterTypes() {
            return getInvariantTypeResolver().resolveTypesInPlace(super.getGenericParameterTypes());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  7. 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)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  8. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 22:10:29 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  9. 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)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  10. 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.
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 12.6K bytes
    - Click Count (0)
Back to Top