public class InheritanceUtils
extends java.lang.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(java.lang.Class<?> child,
java.lang.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(java.lang.Class<?> child, java.lang.Class<?> parent)
Returns the number of inheritance hops between two classes.
child
- the child class, may be null
parent
- the parent class, may be null
Copyright © 2010 - 2020 Adobe. All Rights Reserved