|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.core.util.Primitives
public final class Primitives
Utility class for primitives.
| Constructor Summary | |
|---|---|
Primitives()
|
|
| Method Summary | |
|---|---|
static Class |
box(Class type)
Get the boxed type for a primitive. |
static boolean |
isBoxed(Class type)
Check for a boxed type. |
static Class |
primitiveType(String name)
Get the primitive type by name. |
static char |
representingChar(Class type)
Get the representing character of a primitive type. |
static Class |
unbox(Class type)
Get the primitive type for a boxed one. |
| 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 Class box(Class type)
type - the primitive type
public static Class unbox(Class type)
type - the boxed type
public static boolean isBoxed(Class type)
type - the type to check
true if the type is boxedpublic static Class primitiveType(String name)
name - the name of the type
nullpublic static char representingChar(Class type)
type - the primitive type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||