Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NumberList (0.04 sec)

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

                .isSubtypeOf(superclass));
      }
    
      public void testGetSubtypeOf_impossibleWildcard() {
        TypeToken<List<? extends Number>> numberList = new TypeToken<List<? extends Number>>() {};
        abstract class StringList implements List<String> {}
        assertThrows(IllegalArgumentException.class, () -> numberList.getSubtype(StringList.class));
      }
    
      private static class OwnerTypeSubtypingTests extends SubtypeTester {
        @TestSubtype
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private interface NumberList<T extends Number> {}
    
      public void testImplicitUpperBoundForWildcards() {
        assertAssignable(
            new TypeToken<NumberList<? extends Number>>() {}, new TypeToken<NumberList<?>>() {});
        assertAssignable(
            new TypeToken<NumberList<? super Integer>>() {}, new TypeToken<NumberList<?>>() {});
      }
    
    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. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private interface NumberList<T extends Number> {}
    
      public void testImplicitUpperBoundForWildcards() {
        assertAssignable(
            new TypeToken<NumberList<? extends Number>>() {}, new TypeToken<NumberList<?>>() {});
        assertAssignable(
            new TypeToken<NumberList<? super Integer>>() {}, new TypeToken<NumberList<?>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top