|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.Primitives
public class Primitives
Utilities to work with Java primitive data.
Primitive types are boolean, byte, char, short, int,
long, float and double.
| Constructor Summary | |
|---|---|
Primitives()
|
|
| Method Summary | |
|---|---|
static java.lang.Class |
classForName(java.lang.String type)
Class for name, but supporting primitive types and arrays of primitive types. |
static java.lang.Class |
toPrimitiveClass(java.lang.Class origin)
Primitive class corresponding to class of wrapper class sent. |
static java.lang.Class |
toWrapperClass(java.lang.Class origin)
Wrapper class corresponding to class of primitive sent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Primitives()
| Method Detail |
|---|
public static java.lang.Class toWrapperClass(java.lang.Class origin)
That is, if it receive a int.class then
returns a Integer.class.
If receives a class of a no primitive class then returns
the same class.
If receives null returns null.
public static java.lang.Class classForName(java.lang.String type)
throws java.lang.ClassNotFoundException
If receives null returns null.
java.lang.ClassNotFoundExceptionpublic static java.lang.Class toPrimitiveClass(java.lang.Class origin)
That is, if it receive a Integer.class then
returns a int.class.
If receives a class of a no primitive wrapper class then returns
the same class.
If receives null returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||