- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for isPrimitive (0.12 seconds)
-
android/guava/src/com/google/common/primitives/Primitives.java
} /** * Returns an immutable set of all nine primitive types (including {@code void}). Note that a * simpler way to test whether a {@code Class} instance is a member of this set is to call {@link * Class#isPrimitive}. * * @since 3.0 */ public static Set<Class<?>> allPrimitiveTypes() { return PRIMITIVE_TO_WRAPPER_TYPE.keySet(); } /**
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) -
android/guava/src/com/google/common/base/Defaults.java
*/ @SuppressWarnings({ "unchecked", "BooleanLiteral" // `(T) false` would produce an error }) public static <T> @Nullable T defaultValue(Class<T> type) { checkNotNull(type); if (type.isPrimitive()) { if (type == boolean.class) { return (T) Boolean.FALSE; } else if (type == char.class) { return (T) Character.valueOf('\0'); } else if (type == byte.class) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Defaults.java
*/ @SuppressWarnings({ "unchecked", "BooleanLiteral" // `(T) false` would produce an error }) public static <T> @Nullable T defaultValue(Class<T> type) { checkNotNull(type); if (type.isPrimitive()) { if (type == boolean.class) { return (T) Boolean.FALSE; } else if (type == char.class) { return (T) Character.valueOf('\0'); } else if (type == byte.class) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 2.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
return ObjectInputFilter.Status.UNDECIDED; } final String className = serialClass.getName(); // Allow primitive types and their wrappers if (serialClass.isPrimitive() || serialClass.isArray()) { return ObjectInputFilter.Status.ALLOWED; } // Check against allowed patterns for (String allowedPattern : DEFAULT_ALLOWED_PATTERNS) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 8.9K bytes - Click Count (0)