Modifier and Type | Method and Description |
---|---|
static boolean |
containsMethod(Class<?> aClass,
String name,
Class<?>[] parameterTypes) |
static String |
createAdapter(Class anInterface)
Deprecated.
|
static String |
createWrapper(Class<?> aClass,
String packageName)
Deprecated.
|
static boolean |
extendsClass(Class<?> subclass,
Class<?> superclass)
Tests if the first class extends (directly or indirectly) the second class.
|
static Class<?>[] |
getClasses(Collection<?> objects) |
static Class<?>[] |
getClasses(Object[] objects) |
static Class<?> |
getTopMostCommonClass(Class<?>[] classes) |
static Class<?> |
getTopMostCommonClass(Class<?> a,
Class<?> b) |
static Set<Class<?>> |
getTypes(Object obj)
Gets all types (class, super classes, interfaces and super interfaces) of the provided object.
|
static Class<?> |
getWrapperClass(Class<?> primitiveClass) |
static boolean |
implementsInterface(Class<?> aClass,
Class<?> anInterface)
Tests if the specified class implements (directly or indirectly) the specified interface.
|
public static boolean implementsInterface(Class<?> aClass, Class<?> anInterface)
aClass
- the specified classanInterface
- the specified interfaceIllegalArgumentException
- if the parameter anInterface is not an interfacepublic static boolean extendsClass(Class<?> subclass, Class<?> superclass)
subclass
- the subclasssuperclass
- the superclasspublic static Set<Class<?>> getTypes(Object obj)
obj
- the objectpublic static Class<?>[] getClasses(Collection<?> objects)
@Deprecated public static String createWrapper(Class<?> aClass, String packageName)
@Deprecated public static String createAdapter(Class anInterface)
Copyright © 2002–2015 SoftSmithy. All rights reserved.