public class InheritanceUtils extends Object
Utility methods focusing on inheritance.
| Constructor and Description |
|---|
InheritanceUtils()
InheritanceUtils instances should NOT be constructed in standard programming. |
| Modifier and Type | Method and Description |
|---|---|
static int |
distance(Class<?> child,
Class<?> parent)
Returns the number of inheritance hops between two classes.
|
public InheritanceUtils()
InheritanceUtils instances should NOT be constructed in standard programming.
Instead, the class should be used as
MethodUtils.getAccessibleMethod(method).
This constructor is public to permit tools that require a JavaBean
instance to operate.
public static int distance(Class<?> child, Class<?> parent)
Returns the number of inheritance hops between two classes.
child - the child class, may be nullparent - the parent class, may be nullCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.