at.molindo.utils.reflect
Class ClassUtils
java.lang.Object
at.molindo.utils.reflect.ClassUtils
public class ClassUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTypeArgument
public static Class<?> getTypeArgument(Class<?> cls,
Class<?> genericCls)
- Parameters:
type - genericCls -
- Returns:
- first actual type arguments of gernicCls in type hierarchy of cls
getTypeArguments
public static Class<?>[] getTypeArguments(Class<?> cls,
Class<?> genericCls)
- Parameters:
type - genericCls -
- Returns:
- actual type arguments of gernicCls in type hierarchy of cls
toClass
public static Class<?> toClass(Class<?> declaringCls,
Type type)
isAssignable
public static boolean isAssignable(Class<?> cls,
Set<Class<?>> classes)
- Returns:
true if cls is assignable to at least
one class in classes
isAssignableToAll
public static boolean isAssignableToAll(Class<?> cls,
Set<Class<?>> classes)
- Returns:
true if cls is assignable to all
classes
Copyright © 2013 Molindo GmbH. All Rights Reserved.