APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.beans.finder

public final Class PrimitiveWrapperMap

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

This utility class associates name of primitive type with appropriate wrapper.
Author
Sergey A. Malenkov
Since
1.7

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
PrimitiveWrapperMap()

Disable instantiation.

Method Summary

Modifier and TypeMethod and Description
public static Class<?>

Returns:

found wrapper for primitive type, or null if not found
getType
(String
the name of primitive type
name
)

Returns wrapper for primitive type by its name.

pack-priv static void
replacePrimitivesWithWrappers(Class<?>[]
array of classes where all primitive types will be replaced by appropriate wrappers
types
)

Replaces all primitive types in specified array with wrappers.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapback to summary
private static final Map<String, Class<?>> map

Constructor Detail

PrimitiveWrapperMapback to summary
private PrimitiveWrapperMap()

Disable instantiation.

Method Detail

getTypeback to summary
public static Class<?> getType(String name)

Returns wrapper for primitive type by its name.

Parameters
name:String

the name of primitive type

Returns:Class<?>

found wrapper for primitive type, or null if not found

replacePrimitivesWithWrappersback to summary
pack-priv static void replacePrimitivesWithWrappers(Class<?>[] types)

Replaces all primitive types in specified array with wrappers.

Parameters
types:Class<?>[]

array of classes where all primitive types will be replaced by appropriate wrappers