public class InheritanceUtils extends Object
Utility methods focusing on inheritance.
| Constructor and Description |
|---|
InheritanceUtils()
InheritanceUtils instances should NOT be constructed in standard programming. |
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–2015 The Apache Software Foundation. All rights reserved.