Class FormatUtil

java.lang.Object
ch.tocco.nice2.toolbox.api.string.FormatUtil

public class FormatUtil extends Object
  • Method Details

    • formatByteSize

      public static String formatByteSize(long size)
    • toCamelCase

      public static String toCamelCase(String in, boolean startWithUpper)
      • "my new string" --> myNewString
      • "my_new_string" --> myNewString
      • "my-new-string" --> myNewString
      Parameters:
      in - input string
      startWithUpper - whether the first case should be uppercase
      Returns:
      the in string in camelcase
    • capitalizeFirstLetter

      public static String capitalizeFirstLetter(String input)
      Parameters:
      input - input string
      Returns:
      the input string with first letter capitalized