Class StringUtils

java.lang.Object
com.broadleafcommerce.shipping.service.util.StringUtils

public class StringUtils extends Object
Utility class for String operations in Shipping Services.
Author:
Julia Lopez-Pozas
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • capitalizeFully

      public static String capitalizeFully(String delimitedString)
      Capitalizes the first letter of each word in a string separated by a space.
      Parameters:
      delimitedString - The string with delimited words
      Returns:
      The delimited string with each word's first letter capitalized
    • capitalizeFully

      public static String capitalizeFully(String delimitedString, String delimiter)
      Capitalizes the first letter of each word in a string separated by delimiters.
      Parameters:
      delimitedString - The string with delimited words
      delimiter - The delimiter to use when splitting the string
      Returns:
      The delimited string with each word's first letter capitalized