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 boolean
isAlpha
(CharSequence cs) Returnstrue
if the specified char sequence is all alphabetic letters.static boolean
isBlank
(CharSequence cs) Returnstrue
if the specified char sequence is all blank, empty ornull
.static boolean
Returnstrue
if the specified char sequence is not all blank, not empty and notnull
.static boolean
Returnstrue
if the specified char sequence is all numeric letters.
-
Method Details
-
isBlank
Returnstrue
if the specified char sequence is all blank, empty ornull
.- Parameters:
cs
- The char sequence. May benull
.- Returns:
true
if the specified char sequence is all blank, empty ornull
, elsefalse
.
-
isNotBlank
Returnstrue
if the specified char sequence is not all blank, not empty and notnull
.- Parameters:
cs
- The char sequence. May benull
.- Returns:
true
if the specified char sequence is not all blank, not empty and notnull
, elsefalse
.
-
isAlpha
Returnstrue
if the specified char sequence is all alphabetic letters.- Parameters:
cs
- The char sequence. May benull
.- Returns:
true
if the specified char sequence is all alphabetic letters, empty ornull
, elsefalse
.
-
isNumeric
Returnstrue
if the specified char sequence is all numeric letters.- Parameters:
cs
- The char sequence. May benull
.- Returns:
true
if the specified char sequence is all numeric letters, empty ornull
, elsefalse
.
-