Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TypeCapture (0.1 sec)

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

            new TypeResolver()
                .where(
                    new TypeCapture<Iterable<Map<?, V>>>() {}.capture(),
                    new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture());
        assertEquals(
            new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture()));
        assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.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)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            TypeToken.of(new TypeCapture<L>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertNotAssignable(
            TypeToken.of(new TypeCapture<R>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {});
      }
    
    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-tests/test/com/google/common/reflect/TypeResolverTest.java

            new TypeResolver()
                .where(
                    new TypeCapture<Iterable<Map<?, V>>>() {}.capture(),
                    new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture());
        assertEquals(
            new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture()));
        assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.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. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            TypeToken.of(new TypeCapture<L>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertNotAssignable(
            TypeToken.of(new TypeCapture<R>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType jvmType =
            (ParameterizedType) new TypeCapture<Entry<String, int[][]>>() {}.capture();
        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType jvmType =
            (ParameterizedType) new TypeCapture<Entry<String, int[][]>>() {}.capture();
        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/Types.java

          if (AnnotatedElement.class.isAssignableFrom(TypeVariable.class)) {
            if (new TypeCapture<Entry<String, int[][]>>() {}.capture()
                .toString()
                .contains("java.util.Map.java.util.Map")) {
              CURRENT = JAVA8;
            } else {
              CURRENT = JAVA9;
            }
          } else if (new TypeCapture<int[]>() {}.capture() instanceof Class) {
            CURRENT = JAVA7;
          } else {
    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