Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for TypeParameter (0.39 seconds)

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

       * @Nullable X>, then users might pass a TypeParameter<Y>, where Y is a subtype of X, while still
       * passing a TypeToken<X>. This would be invalid. Maybe we could accept a TypeParameter<@PolyNull
       * X> if we support such a thing? It would be weird or misleading for users to be able to pass
       * `new TypeParameter<@Nullable T>() {}` and have it act as a plain `TypeParameter<T>`, but
    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)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        return new TypeToken<Map<K, V>>() {}.where(new TypeParameter<K>() {}, keyType)
            .where(new TypeParameter<V>() {}, valueType);
      }
    
      private static <T> TypeToken<T[]> arrayOf(Class<T> componentType) {
        return new TypeToken<T[]>() {}.where(new TypeParameter<T>() {}, componentType);
      }
    
      public <T> void testNulls() {
    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

        return new TypeToken<Map<K, V>>() {}.where(new TypeParameter<K>() {}, keyType)
            .where(new TypeParameter<V>() {}, valueType);
      }
    
      private static <T> TypeToken<T[]> arrayOf(Class<T> componentType) {
        return new TypeToken<T[]>() {}.where(new TypeParameter<T>() {}, componentType);
      }
    
      public <T> void testNulls() {
    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. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            final TypeVariable<?>[] typeParameters = clazz.getTypeParameters();
            for (final TypeVariable<?> typeParameter : typeParameters) {
                map.put(typeParameter, getActualClass(typeParameter.getBounds()[0], map));
            }
    
            final Class<?> superClass = clazz.getSuperclass();
            final Type superClassType = clazz.getGenericSuperclass();
    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)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

                new TypeToken<B>(getClass()) {}
                // B's bound may have already resolved to something.
                // Make sure it can still further resolve when given a context.
                .where(new TypeParameter<B>() {}, (Class) Integer.class).getType();
            assertEquals(Integer.class, type);
          }
        }
        new ForTwoStageResolution<Integer>().verifyTwoStageResolution();
    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. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

                new TypeToken<B>(getClass()) {}
                // B's bound may have already resolved to something.
                // Make sure it can still further resolve when given a context.
                .where(new TypeParameter<B>() {}, (Class) Integer.class).getType();
            assertEquals(Integer.class, type);
          }
        }
        new ForTwoStageResolution<Integer>().verifyTwoStageResolution();
    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)
Back to Top