public final class ReflectUtil extends Object
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isPrimitiveWrapper(Class pType) |
Returns
true if the given type is a primitive wrapper. |
static Class |
unwrapType(Class pType) |
Returns the primitive type for the given wrapper type.
|
static Class |
wrapType(Class pType) |
Returns the wrapper type for the given primitive type.
|
public static Class unwrapType(Class pType)
pType
- the wrapper typeIllegalArgumentException
- if pType
is not a primitive
wrapperpublic static Class wrapType(Class pType)
pType
- the primitive tpyeIllegalArgumentException
- if pType
is not a primitive
typepublic static boolean isPrimitiveWrapper(Class pType)
true
if the given type is a primitive wrapper.pType
- true
if the given type is a primitive wrapper, otherwise
false
Copyright © 2018. All rights reserved.