Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for newParameterizedType (0.11 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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. 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)
  3. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

          .addInterceptor(new GzipRequestInterceptor())
          .build();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Map<String, String>> mapJsonAdapter = moshi.adapter(
          Types.newParameterizedType(Map.class, String.class, String.class));
    
      public void run() throws Exception {
        Map<String, String> requestBody = new LinkedHashMap<>();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 04 17:43:43 GMT 2025
    - 3.1K 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)
Back to Top