public class ClassUtilities extends Object
| Constructor and Description |
|---|
ClassUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeInheritanceDistance(Class<?> source,
Class<?> destination)
Computes the inheritance distance between two classes/interfaces/primitive types.
|
static boolean |
isPrimitive(Class<?> c) |
public static int computeInheritanceDistance(Class<?> source, Class<?> destination)
source - The source class, interface, or primitive type.destination - The destination class, interface, or primitive type.public static boolean isPrimitive(Class<?> c)
c - Class to testCopyright © 2023. All rights reserved.