Top Fields Constructors Methods
org.glassfish.tyrus.core

pack-priv Class PrimitivesToWrappers

extends Object
Class Inheritance
Imports
java.util.HashMap

Author
Stepan Kopriva

Field Summary

Modifier and TypeField and Description
private static final HashMap<Class<?>, Class<?>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Class<?>

Returns:

boxing class if c is primitive type, c otherwise
getPrimitiveWrapper
(Class<?>
primitive type
c
)

Gets the Boxing class for the primitive type.

public static boolean

Returns:

true iff the class is primitive wrapper, false otherwise.
isPrimitiveWrapper
(Class<?>
Class to be checked.
c
)

Checks whether the given Class is a primitive wrapper class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

conversionMapback to summary
private static final HashMap<Class<?>, Class<?>> conversionMap

Constructor Detail

PrimitivesToWrappersback to summary
pack-priv PrimitivesToWrappers()

Method Detail

getPrimitiveWrapperback to summary
public static Class<?> getPrimitiveWrapper(Class<?> c)

Gets the Boxing class for the primitive type.

Parameters
c:Class<?>

primitive type

Returns:Class<?>

boxing class if c is primitive type, c otherwise

isPrimitiveWrapperback to summary
public static boolean isPrimitiveWrapper(Class<?> c)

Checks whether the given Class is a primitive wrapper class.

Parameters
c:Class<?>

Class to be checked.

Returns:boolean

true iff the class is primitive wrapper, false otherwise.