Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getGenericSuperclass (0.12 sec)

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

        assertNull(new TypeToken<Object>() {}.getGenericSuperclass());
        assertEquals(TypeToken.of(Object.class), new TypeToken<Object[]>() {}.getGenericSuperclass());
        assertNull(new TypeToken<List<String>>() {}.getGenericSuperclass());
        assertEquals(
            TypeToken.of(Object.class), new TypeToken<List<String>[]>() {}.getGenericSuperclass());
      }
    
      public void testGetGenericSuperclass_withSuperclass() {
    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

        assertNull(new TypeToken<Object>() {}.getGenericSuperclass());
        assertEquals(TypeToken.of(Object.class), new TypeToken<Object[]>() {}.getGenericSuperclass());
        assertNull(new TypeToken<List<String>>() {}.getGenericSuperclass());
        assertEquals(
            TypeToken.of(Object.class), new TypeToken<List<String>[]>() {}.getGenericSuperclass());
      }
    
      public void testGetGenericSuperclass_withSuperclass() {
    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/TypesTest.java

        assertEquals(null, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType_nonStaticLocalClass() {
        class LocalClass<T> {}
        Type jvmType = new LocalClass<String>() {}.getClass().getGenericSuperclass();
        Type ourType = Types.newParameterizedType(LocalClass.class, String.class);
        assertEquals(jvmType, ourType);
      }
    
      public void testNewParameterizedType_staticLocalClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(null, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType_nonStaticLocalClass() {
        class LocalClass<T> {}
        Type jvmType = new LocalClass<String>() {}.getClass().getGenericSuperclass();
        Type ourType = Types.newParameterizedType(LocalClass.class, String.class);
        assertEquals(jvmType, ourType);
      }
    
      public void testNewParameterizedType_staticLocalClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/Types.java

          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
              requireNonNull((ParameterizedType) subclass.getGenericSuperclass());
          for (ClassOwnership behavior : ClassOwnership.values()) {
            if (behavior.getOwnerType(LocalClass.class) == parameterizedType.getOwnerType()) {
              return behavior;
            }
          }
    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