java.lang.Object
nl.jqno.equalsverifier.internal.reflection.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>[]Helper method to create an array of Classes.static <T> Class<T> classForName(ClassLoader classLoader, String className) Helper method to resolve a Class of a given name through a given ClassLoader.static <T> Class<T> classForName(String className) Helper method to resolve a Class of a given name.
-
Constructor Details
-
Util
private Util()
-
-
Method Details
-
classForName
Helper method to resolve a Class of a given name.- Type Parameters:
T- The type of the class to resolve.- Parameters:
className- The fully qualified name of the class to resolve.- Returns:
- The corresponding class if it exists, null otherwise.
-
classForName
Helper method to resolve a Class of a given name through a given ClassLoader.- Type Parameters:
T- The type of the class to resolve.- Parameters:
classLoader- The class loader to resolve the class against.className- The fully qualified name of the class to resolve.- Returns:
- The corresponding class if it exists, null otherwise.
-
classes
Helper method to create an array of Classes.- Parameters:
classes- The classes to construct an array out of.- Returns:
- An array with the given classes.
-