Klasse StringUtils
java.lang.Object
org.apache.myfaces.tobago.internal.util.StringUtils
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Methodendetails
-
getIndices
-
constantToLowerCamelCase
-
constantToUpperCamelCase
-
firstToUpperCase
-
equalsIgnoreCaseAndWhitespace
Is the same string, by ignoring differences that are only whitespaces. (null and "" are not equal) -
endsWith
Basically taken from commons-lang -
split
Basically taken from commons-lang -
split
Basically taken from commons-lang -
isEmpty
Basically taken from commons-lang -
isNotEmpty
Basically taken from commons-lang -
isBlank
Basically taken from commons-lang -
isNotBlank
Basically taken from commons-lang -
toConfidentialString
Returns a string with asterisks of the same length to hide confidential passwords from log files etc. -
join
Basically taken from commons-lang -
defaultString
Basically taken from commons-lang -
notEquals
Basically taken from commons-lang -
isUrl
Checks if the String starts like a url, e.g. http: or xyz: -
containsAny
Checks 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- Parameter:
str- the String to check, may be nullsearchChars- the chars to search for, may be null- Gibt zurück:
- the
trueif any of the chars are found,falseif no match or null input Basically taken from commons-lang
-
positiveNumberRegexp
Create a regexp for positive numbers with maximum length of the given parameter.
-