静态 Public 成员函数 | |
| static boolean | isPrimitive (Type type) |
| static boolean | isWrapperType (Type type) |
| static< T > Class< T > | wrap (Class< T > type) |
| static< T > Class< T > | unwrap (Class< T > type) |
静态包函数 | |
| [static initializer] | |
Private 成员函数 | |
| Primitives () | |
静态 Private 成员函数 | |
| static void | add (Map< Class<?>, Class<?>> forward, Map< Class<?>, Class<?>> backward, Class<?> key, Class<?> value) |
静态 Private 属性 | |
| static final Map< Class <?>, Class<?> > | PRIMITIVE_TO_WRAPPER_TYPE |
| static final Map< Class <?>, Class<?> > | WRAPPER_TO_PRIMITIVE_TYPE |
Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
|
inlineprivate |
|
inlinestaticpackage |
|
inlinestaticprivate |
|
inlinestatic |
Returns true if this type is a primitive.
|
inlinestatic |
Returns
if
is one of the nine primitive-wrapper types, such as Integer.
|
inlinestatic |
Returns the corresponding primitive type of
if it is a wrapper type; otherwise returns
itself. Idempotent.
unwrap(Integer.class) == int.class
unwrap(int.class) == int.class
unwrap(String.class) == String.class
|
inlinestatic |
Returns the corresponding wrapper type of
if it is a primitive type; otherwise returns
itself. Idempotent.
wrap(int.class) == Integer.class
wrap(Integer.class) == Integer.class
wrap(String.class) == String.class
|
staticprivate |
A map from primitive types to their corresponding wrapper types.
|
staticprivate |
A map from wrapper types to their corresponding primitive types.
1.8.8