public static boolean isClass(String name)
  {
    if(name == null) {
      return false;
    }
    Matcher matcher = CLASS_NAME_PATTERN.matcher(name);
    return matcher.find();
  }
public static boolean isClass ( String name ) { if ( name == null ) { return false ; } Matcher matcher = CLASS_NAME_PATTERN . matcher ( name ) ; return matcher . find ( ) ; }
Test if given name is a valid Java class name. This predicate returns false if name to test is null.

@param name name to test, possible null.
@return true if given name is a valid Java class name.