Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for allPrimitiveTypes (0.25 seconds)

  1. 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
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 4.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.unwrap(String.class)).isEqualTo(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,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.unwrap(String.class)).isEqualTo(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,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. 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));
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  5. 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));
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
Back to Top