java.lang.Object
nl.jqno.equalsverifier.internal.reflection.Util

public final class Util extends Object
  • Constructor Details

    • Util

      private Util()
  • Method Details

    • classForName

      public static <T> Class<T> classForName(String className)
      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

      public static <T> Class<T> classForName(ClassLoader classLoader, String className)
      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

      public static Class<?>[] classes(Class<?>... 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.