Class LangUtils

java.lang.Object
net.hironico.common.utils.LangUtils

public class LangUtils extends Object
Language utilities : shortcuts that make life easier.
  • Constructor Details

    • LangUtils

      public LangUtils()
  • Method Details

    • hasOneNull

      public static boolean hasOneNull(Object... objs)
      Returns true if at least one of the given objects is null.
    • isAllNull

      public static boolean isAllNull(Object... objs)
      Returns true is ALL objects are null
      Parameters:
      objs - objects to tests if null
      Returns:
      true is all objects are null
    • isAllNotNull

      public static boolean isAllNotNull(Object... objs)
      Checks if all given objects are not null.
      Parameters:
      objs - the objects to check
      Returns:
      true if all objects are not null, false otherwise
    • getClasses

      public static List<Class<? extends Object>> getClasses(String packageName) throws ClassNotFoundException, IOException
      Finds all classes in the specified package.
      Parameters:
      packageName - the package name to search in
      Returns:
      the list of classes found
      Throws:
      ClassNotFoundException - if a class cannot be found
      IOException - if an I/O error occurs