public final class Primitives extends Object
Constructor and Description |
---|
Primitives() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static Class box(Class type)
type
- the primitive typepublic static Class unbox(Class type)
type
- the boxed typepublic static boolean isBoxed(Class type)
type
- the type to checktrue
if the type is boxedpublic static Class primitiveType(String name)
name
- the name of the typenull
public static char representingChar(Class type)
type
- the primitive typeCopyright © 2004–2016 XStream. All rights reserved.