public final class ReflectUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPrimitiveWrapper(java.lang.Class pType)
Returns
true if the given type is a primitive wrapper. |
static java.lang.Class |
unwrapType(java.lang.Class pType)
Returns the primitive type for the given wrapper type.
|
static java.lang.Class |
wrapType(java.lang.Class pType)
Returns the wrapper type for the given primitive type.
|
public static java.lang.Class unwrapType(java.lang.Class pType)
pType - the wrapper typejava.lang.IllegalArgumentException - if pType is not a primitive
wrapperpublic static java.lang.Class wrapType(java.lang.Class pType)
pType - the primitive tpyejava.lang.IllegalArgumentException - if pType is not a primitive
typepublic static boolean isPrimitiveWrapper(java.lang.Class pType)
true if the given type is a primitive wrapper.pType - true if the given type is a primitive wrapper, otherwise
falseCopyright © 2018. All Rights Reserved.