- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isWrapperType (0.04 sec)
-
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)).isSameInstanceAs(Integer.class);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.8K bytes - Viewed (0)