Klasse StringUtils
java.lang.Object
com.flexganttfx.core.StringUtils
A couple of utility methods for working with strings.
- Seit:
- 1.0
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic booleanChecks if a String is whitespace, empty ("") or null.static booleanChecks if a String is empty ("") or null.static booleanisNotBlank(String str) Checks if a String is not empty (""), not null and not whitespace only.static booleanisNotEmpty(String str) Checks if a String is not empty ("") and not null.
-
Konstruktordetails
-
StringUtils
public StringUtils()
-
-
Methodendetails
-
isEmpty
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true StringUtils.isEmpty("") = true StringUtils.isEmpty(" ") = false StringUtils.isEmpty("bob") = false StringUtils.isEmpty(" bob ") = false- Parameter:
str- the String to check, may be null- Gibt zurück:
trueif the String is empty or null- Seit:
- 1.0
-
isNotEmpty
Checks if a String is not empty ("") and not null.
StringUtils.isNotEmpty(null) = false StringUtils.isNotEmpty("") = false StringUtils.isNotEmpty(" ") = true StringUtils.isNotEmpty("bob") = true StringUtils.isNotEmpty(" bob ") = true- Parameter:
str- the String to check, may be null- Gibt zurück:
trueif the String is not empty and not null- Seit:
- 1.0
-
isBlank
Checks if a String is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true StringUtils.isBlank("") = true StringUtils.isBlank(" ") = true StringUtils.isBlank("bob") = false StringUtils.isBlank(" bob ") = false- Parameter:
str- the String to check, may be null- Gibt zurück:
trueif the String is null, empty or whitespace- Seit:
- 1.0
-
isNotBlank
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false StringUtils.isNotBlank("") = false StringUtils.isNotBlank(" ") = false StringUtils.isNotBlank("bob") = true StringUtils.isNotBlank(" bob ") = true- Parameter:
str- the String to check, may be null- Gibt zurück:
trueif the String is not empty and not null and not whitespace- Seit:
- 1.0
-