Class StringTools

java.lang.Object
org.vaadin.miki.util.StringTools

public class StringTools extends Object
Some general-purpose utils for Strings.
Since:
2022-09-08
Author:
miki
  • Method Details

    • firstLetterUppercase

      public static String firstLetterUppercase(String string)
      Modifies the text by putting the first character of it to uppercase.
      Parameters:
      string - String.
      Returns:
      The input string, but with the first letter being uppercase.
    • humanReadable

      public static String humanReadable(String string)
      Converts camelCase into Readable Text. Also removes more than two consecutive spaces and trims the result.
      Parameters:
      string - String.
      Returns:
      Human-readable string.