Class StringUtils

java.lang.Object
io.hypersistence.utils.common.StringUtils

public class StringUtils extends Object
StringUtils - String utilities holder.
Since:
2.5.1
Author:
Vlad Mihalcea
  • Field Details

    • LINE_SEPARATOR

      public static final String LINE_SEPARATOR
    • TRUE

      public static final String TRUE
    • FALSE

      public static final String FALSE
  • Method Details

    • join

      public static String join(CharSequence delimiter, CharSequence... elements)
      Join the provided elements separated by the delimiter.
      Parameters:
      delimiter - delimiter
      elements - elements to join
      Returns:
      the {link @String} result obtained from joining all elements
    • isBlank

      public static boolean isBlank(String value)
      Check if the String value is null, empty or contains only whitespace characters.
      Parameters:
      value - String value
      Returns:
      if the string is blank
    • toLowercase

      public static String toLowercase(String value)
      Transform string to lowercase.
      Parameters:
      value - String value
      Returns:
      String value in lowercase