Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for TypeParameter (0.06 seconds)

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

     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }
     *
     * @author Ben Yu
     * @since 12.0
     */
    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/reflect/TypeParameterTest.java

        assertThrows(IllegalArgumentException.class, () -> new TypeParameter<String>() {});
      }
    
      public <A, B> void testEquals() throws Exception {
        Method method = TypeParameterTest.class.getDeclaredMethod("testEquals");
        new EqualsTester()
            .addEqualityGroup(new TypeParameter<A>() {}, new TypeParameter<A>() {})
            .addEqualityGroup(new TypeParameter<B>() {})
            .testEquals();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeParameterTest.java

        assertThrows(IllegalArgumentException.class, () -> new TypeParameter<String>() {});
      }
    
      public <A, B> void testEquals() throws Exception {
        Method method = TypeParameterTest.class.getDeclaredMethod("testEquals");
        new EqualsTester()
            .addEqualityGroup(new TypeParameter<A>() {}, new TypeParameter<A>() {})
            .addEqualityGroup(new TypeParameter<B>() {})
            .testEquals();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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