Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for resolveTypes (0.08 sec)

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

        assertEquals(Long.class, f.resolveType(Iterable.class.getTypeParameters()[0]).getType());
      }
    
      public <E extends Comparable<Iterable<String>> & Iterable<Integer>>
          void testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed() {
        TypeToken<?> e = TypeToken.of(new TypeCapture<E>() {}.capture());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(Long.class, f.resolveType(Iterable.class.getTypeParameters()[0]).getType());
      }
    
      public <E extends Comparable<Iterable<String>> & Iterable<Integer>>
          void testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed() {
        TypeToken<?> e = TypeToken.of(new TypeCapture<E>() {}.capture());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          return defaultType;
        }
        if (type.getRawType() == Converter.class) {
          TypeToken<?> convertFromType = type.resolveType(Converter.class.getTypeParameters()[0]);
          TypeToken<?> convertToType = type.resolveType(Converter.class.getTypeParameters()[1]);
          @SuppressWarnings("unchecked") // returns default for both F and T
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/NullPointerTester.java

          return defaultType;
        }
        if (type.getRawType() == Converter.class) {
          TypeToken<?> convertFromType = type.resolveType(Converter.class.getTypeParameters()[0]);
          TypeToken<?> convertToType = type.resolveType(Converter.class.getTypeParameters()[1]);
          @SuppressWarnings("unchecked") // returns default for both F and T
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K 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)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

          List<Object> args = Lists.newArrayListWithCapacity(params.size());
          TypeVariable<?>[] typeVars = rawType.getTypeParameters();
          for (int i = 0; i < params.size(); i++) {
            TypeToken<?> paramType = type.resolveType(typeVars[i]);
            // We require all @Generates methods to either be parameter-less or accept non-null
            // values for their generic parameter types.
            Object argValue = generate(paramType);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

          List<Object> args = Lists.newArrayListWithCapacity(params.size());
          TypeVariable<?>[] typeVars = rawType.getTypeParameters();
          for (int i = 0; i < params.size(); i++) {
            TypeToken<?> paramType = type.resolveType(typeVars[i]);
            // We require all @Generates methods to either be parameter-less or accept non-null
            // values for their generic parameter types.
            Object argValue = generate(paramType);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top