org.springmodules.validation.util
Class PrimitiveClassUtils
java.lang.Object
org.springmodules.validation.util.PrimitiveClassUtils
public class PrimitiveClassUtils
- extends Object
Primitive class utilities.
Note: Derived from org.springframework.util.ClassUtils
and ideally would be added to this class.
- Author:
- David Winterfeldt
Method Summary |
static Class<?> |
resolvePrimitiveClassName(Class<?> primitiveClass)
Resolve the given primitive class name as primitive wrapper class, if appropriate,
according to the JVM's naming rules for primitive classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimitiveClassUtils
public PrimitiveClassUtils()
resolvePrimitiveClassName
public static Class<?> resolvePrimitiveClassName(Class<?> primitiveClass)
- Resolve the given primitive class name as primitive wrapper class, if appropriate,
according to the JVM's naming rules for primitive classes.
- Parameters:
name
- The name of the potentially primitive class.
- Returns:
- Class The primitive wrapper class, or
null
if the name does not denote
a primitive class or primitive array class
Copyright © 2009. All Rights Reserved.