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
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
.
-
-
-
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
.
-
-