Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for getActualTypeArguments (0.12 seconds)

  1. android/guava/src/com/google/common/reflect/TypeCapture.java

      final Type capture() {
        Type superclass = getClass().getGenericSuperclass();
        checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass);
        return ((ParameterizedType) superclass).getActualTypeArguments()[0];
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/beans/ParameterizedClassDesc.java

         * </p>
         *
         * @return an array of {@link ParameterizedClassDesc} representing the type arguments
         * @see ParameterizedType#getActualTypeArguments()
         */
        ParameterizedClassDesc[] getArguments();
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType();
        assertEquals(MySpecialList.class, actualSubtype.getRawType());
        assertThat(actualSubtype.getActualTypeArguments()[0]).isEqualTo(String.class);
        assertThat(actualSubtype.getActualTypeArguments()[1]).isInstanceOf(TypeVariable.class);
        assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType();
        assertEquals(MySpecialList.class, actualSubtype.getRawType());
        assertThat(actualSubtype.getActualTypeArguments()[0]).isEqualTo(String.class);
        assertThat(actualSubtype.getActualTypeArguments()[1]).isInstanceOf(TypeVariable.class);
        assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/Types.java

          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equals(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

            (ParameterizedType)
                new WithGenericBound<String>() {}.getTargetType("withMutualRecursiveBound");
        TypeVariable<?> k = (TypeVariable<?>) paramType.getActualTypeArguments()[0];
        TypeVariable<?> v = (TypeVariable<?>) paramType.getActualTypeArguments()[1];
        assertEquals(Types.newParameterizedType(List.class, v), k.getBounds()[0]);
        assertEquals(Types.newParameterizedType(List.class, k), v.getBounds()[0]);
      }
    
    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)
  7. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

            (ParameterizedType)
                new WithGenericBound<String>() {}.getTargetType("withMutualRecursiveBound");
        TypeVariable<?> k = (TypeVariable<?>) paramType.getActualTypeArguments()[0];
        TypeVariable<?> v = (TypeVariable<?>) paramType.getActualTypeArguments()[1];
        assertEquals(Types.newParameterizedType(List.class, v), k.getBounds()[0]);
        assertEquals(Types.newParameterizedType(List.class, k), v.getBounds()[0]);
      }
    
    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)
  8. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * @return the array of type arguments for the specified type
         * @see ParameterizedType#getActualTypeArguments()
         */
        public static Type[] getGenericParameters(final Type type) {
            if (type instanceof ParameterizedType) {
                return ParameterizedType.class.cast(type).getActualTypeArguments();
            }
            if (type instanceof GenericArrayType) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          }
        };
      }
    
      private static TypeToken<?> getFirstTypeParameter(Type type) {
        if (type instanceof ParameterizedType) {
          return TypeToken.of(((ParameterizedType) type).getActualTypeArguments()[0]);
        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(TypeToken<T> type) {
        return new DummyProxy() {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/testing/NullPointerTester.java

          }
        };
      }
    
      private static TypeToken<?> getFirstTypeParameter(Type type) {
        if (type instanceof ParameterizedType) {
          return TypeToken.of(((ParameterizedType) type).getActualTypeArguments()[0]);
        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(TypeToken<T> type) {
        return new DummyProxy() {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
Back to Top