Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allPrimitiveTypes (0.09 sec)

  1. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.unwrap(String.class)).isSameInstanceAs(String.class);
      }
    
      public void testAllPrimitiveTypes() {
        Set<Class<?>> primitives = Primitives.allPrimitiveTypes();
        assertThat(primitives)
            .containsExactly(
                boolean.class,
                byte.class,
                char.class,
                double.class,
                float.class,
                int.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Primitives.java

       * simpler way to test whether a {@code Class} instance is a member of this set is to call {@link
       * Class#isPrimitive}.
       *
       * @since 3.0
       */
      public static Set<Class<?>> allPrimitiveTypes() {
        return PRIMITIVE_TO_WRAPPER_TYPE.keySet();
      }
    
      /**
       * Returns an immutable set of all nine primitive-wrapper types (including {@link Void}).
       *
       * @since 3.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(TypeToken.of(Types.supertypeOf(Object[].class)).isArray());
      }
    
      public <T extends Integer> void testPrimitiveWrappingAndUnwrapping() {
        for (Class<?> type : Primitives.allPrimitiveTypes()) {
          assertIsPrimitive(TypeToken.of(type));
        }
        for (Class<?> type : Primitives.allWrapperTypes()) {
          assertIsWrapper(TypeToken.of(type));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(TypeToken.of(Types.supertypeOf(Object[].class)).isArray());
      }
    
      public <T extends Integer> void testPrimitiveWrappingAndUnwrapping() {
        for (Class<?> type : Primitives.allPrimitiveTypes()) {
          assertIsPrimitive(TypeToken.of(type));
        }
        for (Class<?> type : Primitives.allWrapperTypes()) {
          assertIsWrapper(TypeToken.of(type));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top