Class StringFormatter

java.lang.Object
fr.multimc.api.commons.tools.formatters.StringFormatter

public class StringFormatter extends Object
  • Constructor Details

    • StringFormatter

      public StringFormatter()
  • Method Details

    • capitalize

      public static String capitalize(@Nonnull String string)
      Capitalize each word of a sentence.
      Parameters:
      string - : String to capitalize.
      Returns:
      String capitalized.
    • initialCapitalize

      public static String initialCapitalize(@Nonnull String string)
      Capitalize each sentence of a string (initial char to upper).
      Parameters:
      string - : String to capitalize.
      Returns:
      String capitalized.
    • reduce

      public static String reduce(@Nonnull String[] string)
    • reduce

      public static String reduce(@Nonnull String[] string, char separator)
    • reduce

      public static String reduce(@Nonnull String[] string, @Nonnull String separator)