Package com.nimbusds.oauth2.sdk.util
Class StringUtils
java.lang.Object
com.nimbusds.oauth2.sdk.util.StringUtils
String utilities. Replicates Apache Commons Lang 3.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAlpha(CharSequence cs) Returnstrueif the specified char sequence is all alphabetic letters.static booleanisBlank(CharSequence cs) Returnstrueif the specified char sequence is all blank, empty ornull.static booleanReturnstrueif the specified char sequence is not all blank, not empty and notnull.static booleanReturnstrueif the specified char sequence is all numeric letters.
-
Method Details
-
isBlank
Returnstrueif the specified char sequence is all blank, empty ornull.- Parameters:
cs- The char sequence. May benull.- Returns:
trueif the specified char sequence is all blank, empty ornull, elsefalse.
-
isNotBlank
Returnstrueif the specified char sequence is not all blank, not empty and notnull.- Parameters:
cs- The char sequence. May benull.- Returns:
trueif the specified char sequence is not all blank, not empty and notnull, elsefalse.
-
isAlpha
Returnstrueif the specified char sequence is all alphabetic letters.- Parameters:
cs- The char sequence. May benull.- Returns:
trueif the specified char sequence is all alphabetic letters, empty ornull, elsefalse.
-
isNumeric
Returnstrueif the specified char sequence is all numeric letters.- Parameters:
cs- The char sequence. May benull.- Returns:
trueif the specified char sequence is all numeric letters, empty ornull, elsefalse.
-