net.sf.josceleton.commons.reflect
Class ReflectUtil
java.lang.Object
net.sf.josceleton.commons.reflect.ReflectUtil
public final class ReflectUtil
- extends Object
- Since:
- 0.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findConstructor
public static <T> Constructor<T> findConstructor(ClassAdapter<T> clazz,
Object[] arguments)
- Since:
- 0.1
isAssignable
public static boolean isAssignable(ClassAdapter<?> typeUnderInspection,
ClassAdapter<?> superType)
- Enhances common
Class.isAssignableFrom(Class)
with additional primitive type checks.
- Parameters:
typeUnderInspection
- is the type under inspection which will be checked for assignment.superType
- reference type to check typeUnderInspection
against.
- Returns:
- true if
typeUnderInspection
is of the same type or a sub-type of superType
. - Since:
- 0.1
Copyright © 2011 Josceleton. All Rights Reserved.