- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isWrapperType (0.24 sec)
-
guava-tests/test/com/google/common/primitives/PrimitivesTest.java
* * @author Kevin Bourrillion */ @GwtCompatible(emulated = true) 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);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java
* * @author Kevin Bourrillion */ @GwtCompatible(emulated = true) 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);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 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
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Oct 05 19:04:25 GMT 2022 - 4.5K bytes - Viewed (0)