Class StringUtils
java.lang.Object
org.apache.myfaces.tobago.internal.util.StringUtils
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringconstantToLowerCamelCase(String constant) static StringconstantToUpperCamelCase(String constant) static booleancontainsAny(String str, String searchChars) Checks if the String contains any character in the given set of characters.static StringdefaultString(String string) Basically taken from commons-langstatic booleanBasically taken from commons-langstatic booleanequalsIgnoreCaseAndWhitespace(String type1, String type2) Is the same string, by ignoring differences that are only whitespaces.static StringfirstToUpperCase(String string) static int[]getIndices(String list) static booleanBasically taken from commons-langstatic booleanBasically taken from commons-langstatic booleanisNotBlank(String str) Basically taken from commons-langstatic booleanisNotEmpty(String value) Basically taken from commons-langstatic booleanChecks if the String starts like a url, e.g. http: or xyz:static StringBasically taken from commons-langstatic booleanBasically taken from commons-langstatic StringpositiveNumberRegexp(int length) Create a regexp for positive numbers with maximum length of the given parameter.static String[]Basically taken from commons-langstatic String[]Basically taken from commons-langstatic StringtoConfidentialString(String string, boolean confidential) Returns a string with asterisks of the same length to hide confidential passwords from log files etc.
- 
Method Details- 
getIndices
- 
constantToLowerCamelCase
- 
constantToUpperCamelCase
- 
firstToUpperCase
- 
equalsIgnoreCaseAndWhitespace
- 
endsWith
- 
split
- 
split
- 
isEmptyBasically taken from commons-lang
- 
isNotEmptyBasically taken from commons-lang
- 
isBlankBasically taken from commons-lang
- 
isNotBlankBasically taken from commons-lang
- 
toConfidentialString
- 
join
- 
defaultString
- 
notEquals
- 
isUrlChecks if the String starts like a url, e.g. http: or xyz:
- 
containsAnyChecks if the String contains any character in the given set of characters. A nullString will returnfalse. Anullsearch string will returnfalse.StringUtils.containsAny(null, *) = false StringUtils.containsAny("", *) = false StringUtils.containsAny(*, null) = false StringUtils.containsAny(*, "") = false StringUtils.containsAny("zzabyycdxx", "za") = true StringUtils.containsAny("zzabyycdxx", "by") = true StringUtils.containsAny("aba","z") = false- Parameters:
- str- the String to check, may be null
- searchChars- the chars to search for, may be null
- Returns:
- the trueif any of the chars are found,falseif no match or null input Basically taken from commons-lang
 
- 
positiveNumberRegexpCreate a regexp for positive numbers with maximum length of the given parameter.
 
-