Package org.keycloak.common.util
Class ObjectUtil
java.lang.Object
org.keycloak.common.util.ObjectUtil
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalize
(String str) static boolean
isBlank
(CharSequence cs) Forked from apache-commons StringUtilsstatic boolean
isEqualOrBothNull
(Object str1, Object str2)
-
Method Details
-
isEqualOrBothNull
- Parameters:
str1
-str2
-- Returns:
- true if both strings are null or equal
-
capitalize
-
isBlank
Forked from apache-commons StringUtilsChecks if a CharSequence is whitespace, empty ("") or null.
ObjectUtil.isBlank(null) = true ObjectUtil.isBlank("") = true ObjectUtil.isBlank(" ") = true ObjectUtil.isBlank("bob") = false ObjectUtil.isBlank(" bob ") = false
- Parameters:
cs
-- Returns:
true
if the CharSequence is null, empty or whitespace
-