de.danielbechler.util
Class Classes

java.lang.Object
  extended by de.danielbechler.util.Classes

public final class Classes
extends Object

Author:
Daniel Bechler

Method Summary
static boolean allAssignableFrom(Class<?> sharedType, Iterable<? extends Class<?>> types)
           
static
<T> T
freshInstanceOf(Class<T> clazz)
           
static boolean isPrimitiveNumericType(Class<?> clazz)
           
static boolean isPrimitiveType(Class<?> clazz)
           
static boolean isPrimitiveWrapperType(Class<?> clazz)
           
static boolean isSimpleType(Class<?> clazz)
           
static Set<Class<?>> typesOf(Object... values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPrimitiveNumericType

public static boolean isPrimitiveNumericType(Class<?> clazz)

isPrimitiveType

public static boolean isPrimitiveType(Class<?> clazz)

isPrimitiveWrapperType

public static boolean isPrimitiveWrapperType(Class<?> clazz)

isSimpleType

public static boolean isSimpleType(Class<?> clazz)

freshInstanceOf

public static <T> T freshInstanceOf(Class<T> clazz)

typesOf

public static Set<Class<?>> typesOf(Object... values)

allAssignableFrom

public static boolean allAssignableFrom(Class<?> sharedType,
                                        Iterable<? extends Class<?>> types)


Copyright © 2012. All Rights Reserved.