org.springmodules.validation.util
Class PrimitiveClassUtils

java.lang.Object
  extended by 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

Constructor Summary
PrimitiveClassUtils()
           
 
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
 

Constructor Detail

PrimitiveClassUtils

public PrimitiveClassUtils()
Method Detail

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.