Class StringUtils


  • public final class StringUtils
    extends Object
    Simple utility methods for dealing with strings.
    Since:
    4.0.0
    Author:
    Dmytro Nosan
    • Method Detail

      • hasText

        public static boolean hasText​(CharSequence source)
        Check whether the provided string contains actual text.
        Parameters:
        source - the string to check (may be null)
        Returns:
        true if the string is not null, its length is greater than 0, and it does not contain whitespace only