Package com.nimbusds.oauth2.sdk.util
Class StringUtils
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.util.StringUtils
-
public final class StringUtils extends Object
String utilities. Replicates Apache Commons Lang 3.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
isNotBlank(CharSequence cs)
Returnstrue
if the specified char sequence is not all blank, not empty and notnull
.static boolean
isNumeric(CharSequence cs)
Returnstrue
if the specified char sequence is all numeric letters.
-
-
-
Method Detail
-
isBlank
public static boolean isBlank(CharSequence cs)
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
public static boolean isNotBlank(CharSequence cs)
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
public static boolean isAlpha(CharSequence cs)
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
public static boolean isNumeric(CharSequence cs)
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
.
-
-