Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newArrayType (0.21 sec)

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

        assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
      public void testNewArrayType_lowerBoundedWildcard() {
        Type wildcard = Types.supertypeOf(Number.class);
        assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
      public void testNewArrayType_serializable() {
        SerializableTester.reserializeAndAssert(Types.newArrayType(int[].class));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
      public void testNewArrayType_lowerBoundedWildcard() {
        Type wildcard = Types.supertypeOf(Number.class);
        assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
      public void testNewArrayType_serializable() {
        SerializableTester.reserializeAndAssert(Types.newArrayType(int[].class));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

      static Type newArrayType(Type componentType) {
        if (componentType instanceof WildcardType) {
          WildcardType wildcard = (WildcardType) componentType;
          Type[] lowerBounds = wildcard.getLowerBounds();
          checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds.");
          if (lowerBounds.length == 1) {
            return supertypeOf(newArrayType(lowerBounds[0]));
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            Types.subtypeOf(Object.class),
            TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType());
        assertEquals(
            Types.subtypeOf(Object[].class),
            Types.newArrayType(
                TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType()));
        assertEquals(
            int.class, TypeToken.of(Types.subtypeOf(int[].class)).getComponentType().getType());
    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/TypeTokenTest.java

            Types.subtypeOf(Object.class),
            TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType());
        assertEquals(
            Types.subtypeOf(Object[].class),
            Types.newArrayType(
                TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType()));
        assertEquals(
            int.class, TypeToken.of(Types.subtypeOf(int[].class)).getComponentType().getType());
    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