Class FormatUtil
java.lang.Object
ch.tocco.nice2.toolbox.api.string.FormatUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalizeFirstLetter
(String input) static String
formatByteSize
(long size) static String
toCamelCase
(String in, boolean startWithUpper) "my new string" --> myNewString "my_new_string" --> myNewString "my-new-string" --> myNewString
-
Method Details
-
formatByteSize
-
toCamelCase
- "my new string" --> myNewString
- "my_new_string" --> myNewString
- "my-new-string" --> myNewString
- Parameters:
in
- input stringstartWithUpper
- whether the first case should be uppercase- Returns:
- the in string in camelcase
-
capitalizeFirstLetter
- Parameters:
input
- input string- Returns:
- the input string with first letter capitalized
-