Class ClassUtils

java.lang.Object
com.github.ushiosan23.jvm.base.ClassUtils

public final class ClassUtils extends Object
Utilities for the class Class or similar.
  • Method Details

    • isPrimitive

      public static boolean isPrimitive(@NotNull @NotNull Class<?> cls)
      Checks if the given class is a primitive.
      Parameters:
      cls - The class to check
      Returns:
      Returns true if the type is a primitive or one of the wrapper classes, or false otherwise.
      See Also: