|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.lang.ReflectUtil
public final class ReflectUtil
Util class for various reflection-based operations.
NOTE: This class is not considered part of the public API and may be changed without notice
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Class unwrapType(Class pType)
pType - the wrapper type
IllegalArgumentException - if pType is not a primitive
wrapperpublic static Class wrapType(Class pType)
pType - the primitive tpye
IllegalArgumentException - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||