public class InheritanceUtils extends Object
| Constructor and Description |
|---|
InheritanceUtils()
Deprecated.
TODO Make private in 4.0.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
distance(Class<?> child,
Class<?> parent)
Returns the number of inheritance hops between two classes.
|
@Deprecated 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)
child - the child class, may be nullparent - the parent class, may be nullCopyright © 2001–2025 The Apache Software Foundation. All rights reserved.