Class Primitives
java.lang.Object
com.thoughtworks.xstream.core.util.Primitives
Utility class for primitives.
- Since:
- 1.2.1
- Author:
- Jörg Schaible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassGet the boxed type for a primitive.static booleanCheck for a boxed type.static ClassprimitiveType(String name) Get the primitive type by name.static charrepresentingChar(Class type) Get the representing character of a primitive type.static ClassGet the primitive type for a boxed one.
-
Constructor Details
-
Primitives
public Primitives()
-
-
Method Details
-
box
-
unbox
-
isBoxed
Check for a boxed type.- Parameters:
type- the type to check- Returns:
trueif the type is boxed- Since:
- 1.4
-
primitiveType
-
representingChar
Get the representing character of a primitive type.- Parameters:
type- the primitive type- Returns:
- the representing character or 0
- Since:
- 1.4
-