Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TypeResolver (0.15 sec)

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

     *
     * @author Ben Yu
     * @since 15.0
     */
    @ElementTypesAreNonnullByDefault
    public final class TypeResolver {
    
      private final TypeTable typeTable;
    
      public TypeResolver() {
        this.typeTable = new TypeTable();
      }
    
      private TypeResolver(TypeTable typeTable) {
        this.typeTable = typeTable;
      }
    
      /**
       * Returns a resolver that resolves types "covariantly".
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeResolver.java

     *
     * @author Ben Yu
     * @since 15.0
     */
    @ElementTypesAreNonnullByDefault
    public final class TypeResolver {
    
      private final TypeTable typeTable;
    
      public TypeResolver() {
        this.typeTable = new TypeTable();
      }
    
      private TypeResolver(TypeTable typeTable) {
        this.typeTable = typeTable;
      }
    
      /**
       * Returns a resolver that resolves types "covariantly".
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      }
    
      public <T> void testWhere_parameterizedSelfMapping() {
        TypeResolver resolver = new TypeResolver();
        Type t = new TypeCapture<List<T>>() {}.capture();
        assertEquals(t, resolver.where(t, t).resolveType(t));
      }
    
      public <T> void testWhere_genericArraySelfMapping() {
        TypeResolver resolver = new TypeResolver();
        Type t = new TypeCapture<T[]>() {}.capture();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      }
    
      public <T> void testWhere_parameterizedSelfMapping() {
        TypeResolver resolver = new TypeResolver();
        Type t = new TypeCapture<List<T>>() {}.capture();
        assertEquals(t, resolver.where(t, t).resolveType(t));
      }
    
      public <T> void testWhere_genericArraySelfMapping() {
        TypeResolver resolver = new TypeResolver();
        Type t = new TypeCapture<T[]>() {}.capture();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/Types.java

       * UnsupportedOperationException}; this should only apply to {@code getAnnotatedBounds()}. This
       * does mean that users on Java 8 who obtain an instance of {@code TypeVariable} from {@link
       * TypeResolver#resolveType} will not be able to call {@code getAnnotatedBounds()} on it, but that
       * should hopefully be rare.
       *
       * <p>TODO(b/147144588): We are currently also missing the methods inherited from {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top