Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for allWrapperTypes (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        return PRIMITIVE_TO_WRAPPER_TYPE.keySet();
      }
    
      /**
       * Returns an immutable set of all nine primitive-wrapper types (including {@link Void}).
       *
       * @since 3.0
       */
      public static Set<Class<?>> allWrapperTypes() {
        return WRAPPER_TO_PRIMITIVE_TYPE.keySet();
      }
    
      /**
       * Returns {@code true} if {@code type} is one of the nine primitive-wrapper types, such as {@link
       * Integer}.
       *
    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

                void.class);
    
        assertThrows(UnsupportedOperationException.class, () -> primitives.remove(boolean.class));
      }
    
      public void testAllWrapperTypes() {
        Set<Class<?>> wrappers = Primitives.allWrapperTypes();
        assertThat(wrappers)
            .containsExactly(
                Boolean.class,
                Byte.class,
                Character.class,
                Double.class,
                Float.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/src/com/google/common/reflect/TypeToken.java

          Class<T> type = (Class<T>) runtimeType;
          return of(Primitives.wrap(type));
        }
        return this;
      }
    
      private boolean isWrapper() {
        return Primitives.allWrapperTypes().contains(runtimeType);
      }
    
      /**
       * Returns the corresponding primitive type if this is a wrapper type; otherwise returns {@code
       * this} itself. Idempotent.
       *
       * @since 15.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public <T extends Integer> void testPrimitiveWrappingAndUnwrapping() {
        for (Class<?> type : Primitives.allPrimitiveTypes()) {
          assertIsPrimitive(TypeToken.of(type));
        }
        for (Class<?> type : Primitives.allWrapperTypes()) {
          assertIsWrapper(TypeToken.of(type));
        }
        assertNotPrimitiveNorWrapper(TypeToken.of(String.class));
        assertNotPrimitiveNorWrapper(TypeToken.of(Object[].class));
    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