public final class Primitives extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBoxed(Class<?> type)
Returns
true if the type is a boxed Java primitive type. |
static boolean |
isPrimitive(Class<?> type)
Returns
true if the type is a Java primitive type. |
static boolean |
isPrimitiveOrString(Class<?> type)
Returns
true if the type is considered as a Java primitive type, or its boxed equivalent, or a
String type. |
public static boolean isPrimitiveOrString(Class<?> type)
true if the type is considered as a Java primitive type, or its boxed equivalent, or a
String type.type - the type to checktrue if the type is considered as a primitive type.public static boolean isBoxed(Class<?> type)
true if the type is a boxed Java primitive type.type - the type to checktrue if the type is a boxed Java primitive typepublic static boolean isPrimitive(Class<?> type)
true if the type is a Java primitive type.type - the type to checktrue if the type is a Java primitive typeCopyright © 2017–2019 Atlanmod. All rights reserved.