public final class CaseUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String string)
Capitalizes the first character in the given string in a way suitable for
use in code (methods, properties etc).
|
static String |
upperCaseUnderscoreToHumanFriendly(String upperCaseUnderscoreString)
Converts an UPPER_CASE_STRING to a human friendly format (Upper Case
String).
|
public static String upperCaseUnderscoreToHumanFriendly(String upperCaseUnderscoreString)
Splits words on _
. Examples:
MY_BEAN_CONTAINER becomes My Bean Container AWESOME_URL_FACTORY becomes Awesome Url Factory SOMETHING becomes Something
upperCaseUnderscoreString
- The input string in UPPER_CASE_UNDERSCORE formatCopyright © 2019. All rights reserved.