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 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 booleanisNotBlank(CharSequence cs)Returnstrueif the specified char sequence is not all blank, not empty and notnull.static booleanisNumeric(CharSequence cs)Returnstrueif the specified char sequence is all numeric letters.
-
-
-
Method Detail
-
isBlank
public static boolean isBlank(CharSequence cs)
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
public static boolean isNotBlank(CharSequence cs)
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
public static boolean isAlpha(CharSequence cs)
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
public static boolean isNumeric(CharSequence cs)
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.
-
-