Class ClassUtils

java.lang.Object
ovh.paulem.arcana.utils.ClassUtils

public class ClassUtils extends Object
  • Constructor Details

    • ClassUtils

      public ClassUtils()
  • Method Details

    • getClass

      public static Optional<Class<?>> getClass(String className)
      Attempts to retrieve the Class object for the fully qualified class name provided.
      Parameters:
      className - the fully qualified name of the class to retrieve
      Returns:
      an Optional containing the Class object if found, or an empty Optional if the class is not found
    • isClassPresent

      public static boolean isClassPresent(String className)
      Checks if the given class is present in the classpath.
      Parameters:
      className - the fully qualified name of the class to check
      Returns:
      true if the class is present, false otherwise