| Access | Constructor and Description |
|---|---|
| public | InheritanceUtils()
Deprecated
TODO Make private in 4.0.
|
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the number of generations between the child and parent; 0 if the same class; -1 if the classes are not related as child and parent (includes where either class is null)the child class, may be child, final Class<?> nullthe parent class, may be parent)nullReturns the number of inheritance hops between two classes. |
| InheritanceUtils | back to summary |
|---|---|
| public InheritanceUtils()
Deprecated TODO Make private in 4.0.
This constructor is
| |
| distance | back to summary |
|---|---|
| public static int distance(final Class<?> child, final Class<?> parent) Returns the number of inheritance hops between two classes. | |