|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.beans.PrimitiveClasses
public final class PrimitiveClasses
A utility class for primitive class manipulation.
Constructor Summary | |
---|---|
PrimitiveClasses()
|
Method Summary | |
---|---|
static Object |
createWrapperObject(String val,
Class primitiveClass)
Constructs a wrapper object that holds a value for the given primitiveClass, based on the given String value. |
static Class |
getWrapperClass(Class primitiveClass)
Get the wrapper type for the given primitive. |
static boolean |
isDecimalClass(Class clazz)
Check if a class allows decimal numeric values. |
static boolean |
isNumericClass(Class clazz)
Check if a class should be restricted to numeric values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveClasses()
Method Detail |
---|
public static boolean isNumericClass(Class clazz)
clazz
- The class to test.
public static boolean isDecimalClass(Class clazz)
clazz
- The class to test.
public static Class getWrapperClass(Class primitiveClass)
primitiveClass
- The primitive class.
public static Object createWrapperObject(String val, Class primitiveClass) throws ClassNotPrimitiveException
val
- The String value.primitiveClass
- The class for which the
wrapper object should be made.
ClassNotPrimitiveException
- If
the supplied class is not recognized as a primitive class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |