Spring Integration

org.springframework.integration.util
Class ClassUtils

java.lang.Object
  extended by org.springframework.integration.util.ClassUtils

public abstract class ClassUtils
extends java.lang.Object

Since:
2.0
Author:
Mark Fisher

Constructor Summary
ClassUtils()
           
 
Method Summary
static java.lang.Class<?> findClosestMatch(java.lang.Class<?> type, java.util.Set<java.lang.Class<?>> candidates, boolean failOnTie)
           
static java.lang.Class<?> resolvePrimitiveType(java.lang.Class<?> clazz)
          Resolve the given class if it is a primitive wrapper class, returning the corresponding primitive type instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtils

public ClassUtils()
Method Detail

findClosestMatch

public static java.lang.Class<?> findClosestMatch(java.lang.Class<?> type,
                                                  java.util.Set<java.lang.Class<?>> candidates,
                                                  boolean failOnTie)

resolvePrimitiveType

public static java.lang.Class<?> resolvePrimitiveType(java.lang.Class<?> clazz)
Resolve the given class if it is a primitive wrapper class, returning the corresponding primitive type instead.

Parameters:
clazz - the wrapper class to check
Returns:
the corresponding primitive if the clazz is a wrapper, otherwise null

Spring Integration