Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for isWrapperType (0.08 seconds)

  1. android/guava/src/com/google/common/primitives/Primitives.java

      }
    
      /**
       * Returns {@code true} if {@code type} is one of the nine primitive-wrapper types, such as {@link
       * Integer}.
       *
       * @see Class#isPrimitive
       */
      public static boolean isWrapperType(Class<?> type) {
        return WRAPPER_TO_PRIMITIVE_TYPE.containsKey(checkNotNull(type));
      }
    
      /**
       * Returns the corresponding wrapper type of {@code type} if it is a primitive type; otherwise
    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

     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @NullUnmarked
    public class PrimitivesTest extends TestCase {
      public void testIsWrapperType() {
        assertThat(Primitives.isWrapperType(Void.class)).isTrue();
        assertThat(Primitives.isWrapperType(void.class)).isFalse();
      }
    
      public void testWrap() {
        assertThat(Primitives.wrap(int.class)).isEqualTo(Integer.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

     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @NullUnmarked
    public class PrimitivesTest extends TestCase {
      public void testIsWrapperType() {
        assertThat(Primitives.isWrapperType(Void.class)).isTrue();
        assertThat(Primitives.isWrapperType(void.class)).isFalse();
      }
    
      public void testWrap() {
        assertThat(Primitives.wrap(int.class)).isEqualTo(Integer.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)
Back to Top