Class Strings


  • @API(status=INTERNAL,
         since="2020.1.0")
    public final class Strings
    extends Object
    The usual, static class with helper methods centered around missing functionality in String. Not supported for external use in anyway.
    Since:
    2020.1.0
    Author:
    Michael J. Simons
    • Method Detail

      • hasText

        public static boolean hasText​(String str)
        Parameters:
        str - A string to be checked for text.
        Returns:
        True, if the string is neither null nor empty nor blank.
      • randomIdentifier

        public static String randomIdentifier​(int length)
        Parameters:
        length - The length of the identifier to generate.
        Returns:
        A random identifier that is a valid identifier