- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for allWrapperTypes (0.08 sec)
-
android/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,
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
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}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.8K bytes - Viewed (0) -
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));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/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));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)