Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for newParameterizedType (0.16 seconds)

  1. guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType jvmType =
            (ParameterizedType) new TypeCapture<Entry<String, Integer>>() {}.capture();
        ParameterizedType ourType =
            Types.newParameterizedType(Entry.class, String.class, Integer.class);
        assertEquals(jvmType, ourType);
        assertEquals(Map.class, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType() {
        ParameterizedType jvmType =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public void testGetSupertype_withTypeVariable() {
        ParameterizedType expectedType =
            Types.newParameterizedType(
                Iterable.class,
                Types.newParameterizedType(List.class, ListIterable.class.getTypeParameters()[0]));
        assertEquals(
            expectedType, TypeToken.of(ListIterable.class).getSupertype(Iterable.class).getType());
      }
    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)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public void testGetSupertype_withTypeVariable() {
        ParameterizedType expectedType =
            Types.newParameterizedType(
                Iterable.class,
                Types.newParameterizedType(List.class, ListIterable.class.getTypeParameters()[0]));
        assertEquals(
            expectedType, TypeToken.of(ListIterable.class).getSupertype(Iterable.class).getType());
      }
    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/TypeTokenResolutionTest.java

        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]);
      }
    
      public void testWithGenericLowerBoundInWildcard() throws Exception {
        WildcardType wildcardType =
    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

        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]);
      }
    
      public void testWithGenericLowerBoundInWildcard() throws Exception {
        WildcardType wildcardType =
    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/Invokable.java

        Type getGenericReturnType() {
          Class<?> declaringClass = getDeclaringClass();
          TypeVariable<?>[] typeParams = declaringClass.getTypeParameters();
          if (typeParams.length > 0) {
            return Types.newParameterizedType(declaringClass, typeParams);
          } else {
            return declaringClass;
          }
        }
    
        @Override
        Type[] getGenericParameterTypes() {
    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)
Back to Top