public class InheritanceUtils
extends java.lang.Object
| Constructor and Description |
|---|
InheritanceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasInterface(java.lang.Class<?> intf,
java.lang.Class<?> cls)
Checks whether the given class implements the given interface.
|
static boolean |
hasInterface(java.lang.String intf,
java.lang.String cls)
Checks whether the given class implements the given interface.
|
static boolean |
isSubclass(java.lang.Class<?> superclass,
java.lang.Class<?> otherclass)
Checks whether the "otherclass" is a subclass of the given "superclass".
|
static boolean |
isSubclass(java.lang.String superclass,
java.lang.String otherclass)
Checks whether the "otherclass" is a subclass of the given "superclass".
|
public static boolean isSubclass(java.lang.String superclass,
java.lang.String otherclass)
superclass - the superclass to check againstotherclass - this class is checked whether it is a subclass of the the
superclasspublic static boolean isSubclass(java.lang.Class<?> superclass,
java.lang.Class<?> otherclass)
superclass - the superclass to check againstotherclass - this class is checked whether it is a subclass of the the
superclasspublic static boolean hasInterface(java.lang.String intf,
java.lang.String cls)
intf - the interface to look for in the given classcls - the class to check for the interfacepublic static boolean hasInterface(java.lang.Class<?> intf,
java.lang.Class<?> cls)
intf - the interface to look for in the given classcls - the class to check for the interface