public class ObjectUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
capitalize(String str) |
static boolean |
isBlank(CharSequence cs)
Forked from apache-commons StringUtils
|
static boolean |
isEqualOrBothNull(Object str1,
Object str2) |
public static boolean isEqualOrBothNull(Object str1, Object str2)
str1 - str2 - public static boolean isBlank(CharSequence cs)
Checks 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
cs - true if the CharSequence is null, empty or whitespaceCopyright © 2019 JBoss by Red Hat. All rights reserved.